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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicBoolean
public BasicBoolean()
BasicBoolean
public BasicBoolean(String name)
BasicBoolean
public BasicBoolean(boolean val)
BasicBoolean
public BasicBoolean(String name,
boolean val)
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