org.escot
Class BasicBoolean

java.lang.Object
  |
  +--org.escot.BasicFeature
        |
        +--org.escot.BasicValue
              |
              +--org.escot.BasicBoolean
All Implemented Interfaces:
BooleanProperty, ChangeListener, EscotAssociated, EscotFeature, EventListener
Direct Known Subclasses:
BooleanAdapter

public class BasicBoolean
extends BasicValue
implements BooleanProperty, EscotAssociated, ChangeListener

Basic implementation of the BooleanProperty interface.


Fields inherited from class org.escot.BasicValue
mChangeSupport
 
Fields inherited from class org.escot.BasicFeature
INITIAL_ATTR_CAPACITY, mAttributes, mPCSupport
 
Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Constructor Summary
BasicBoolean()
           
BasicBoolean(boolean val)
           
BasicBoolean(String name)
           
BasicBoolean(String name, boolean val)
           
 
Method Summary
 void addAssociate(Object foreignAssociate)
          Invoked when the foreign associate is associated with.
 EscotFeature duplicate()
          Features that should be duplicated when wired to return a duplicate to handle the next wire.
 Boolean getBooleanValue()
          gets the value of this boolean property
 Number getNumberValue()
           
 String getTextValue()
           
protected  void init(String name, boolean val)
           
 void setBooleanValue(Boolean newValue)
           
 void stateChanged(ChangeEvent ev)
           
 
Methods inherited from class org.escot.BasicValue
addChangeListener, canAddAssociate, fireChangeEvent, removeAssociate, removeChangeListener
 
Methods inherited from class org.escot.BasicFeature
addPropertyChangeListener, getAttribute, getName, putAttribute, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.escot.BooleanProperty
addChangeListener, removeChangeListener, toString
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, getAttribute, getName, putAttribute, removePropertyChangeListener
 
Methods inherited from interface org.escot.EscotAssociated
canAddAssociate, removeAssociate
 

Constructor Detail

BasicBoolean

public BasicBoolean()

BasicBoolean

public BasicBoolean(String name)

BasicBoolean

public BasicBoolean(boolean val)

BasicBoolean

public BasicBoolean(String name,
                    boolean val)
Method Detail

init

protected void init(String name,
                    boolean val)

getBooleanValue

public Boolean getBooleanValue()
Description copied from interface: BooleanProperty
gets the value of this boolean property
Specified by:
getBooleanValue in interface BooleanProperty
Overrides:
getBooleanValue in class BasicValue
Following copied from interface: org.escot.BooleanProperty
Returns:
the value of this boolean property

getNumberValue

public Number getNumberValue()
Overrides:
getNumberValue in class BasicValue

getTextValue

public String getTextValue()
Overrides:
getTextValue in class BasicValue

stateChanged

public void stateChanged(ChangeEvent ev)
Specified by:
stateChanged in interface ChangeListener

setBooleanValue

public void setBooleanValue(Boolean newValue)
                     throws NotMutableException

addAssociate

public void addAssociate(Object foreignAssociate)
Description copied from interface: EscotAssociated
Invoked when the foreign associate is associated with.
Specified by:
addAssociate in interface EscotAssociated
Following copied from interface: org.escot.EscotAssociated
Parameters:
foreignAssociate - the object to associate with

duplicate

public EscotFeature duplicate()
                       throws InstantiationException,
                              IllegalAccessException
Description copied from interface: EscotFeature
Features that should be duplicated when wired to return a duplicate to handle the next wire.
Specified by:
duplicate in interface EscotFeature
Overrides:
duplicate in class BasicFeature