org.escot
Class BooleanAdapter

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

public class BooleanAdapter
extends BasicBoolean
implements PropertyChangeListener

Adapts a primitive boolean or Boolean property. If the property is bound, registers for change events and relays the change.


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
BooleanAdapter(Object target, PropertyDescriptor desc)
           
 
Method Summary
 void propertyChange(PropertyChangeEvent evt)
           
 void setBooleanValue(Boolean newValue)
           
 
Methods inherited from class org.escot.BasicBoolean
addAssociate, duplicate, getBooleanValue, getNumberValue, getTextValue, init, stateChanged
 
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

BooleanAdapter

public BooleanAdapter(Object target,
                      PropertyDescriptor desc)
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

setBooleanValue

public void setBooleanValue(Boolean newValue)
                     throws NotMutableException
Overrides:
setBooleanValue in class BasicBoolean