org.escot
Interface BooleanProperty

All Superinterfaces:
EscotFeature
All Known Implementing Classes:
BasicBoolean

public interface BooleanProperty
extends EscotFeature

A boolean data type which supports change notification.


Fields inherited from interface org.escot.EscotFeature
COLOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, ICON16x16_ATTRIBUTE, TYPE_ATTRIBUTE
 
Method Summary
 void addChangeListener(ChangeListener l)
          adds a change listener to this boolean, to be notified when the boolean changes
 Boolean getBooleanValue()
          gets the value of this boolean property
 void removeChangeListener(ChangeListener l)
          removes a change listener to this boolean
 String toString()
          converts the boolean to a String representation
 
Methods inherited from interface org.escot.EscotFeature
addPropertyChangeListener, duplicate, getAttribute, getName, putAttribute, removePropertyChangeListener
 

Method Detail

getBooleanValue

public Boolean getBooleanValue()
gets the value of this boolean property
Returns:
the value of this boolean property

addChangeListener

public void addChangeListener(ChangeListener l)
adds a change listener to this boolean, to be notified when the boolean changes
Parameters:
l - a ChangeListener that wants to be notified of changes to this NumberProperty

removeChangeListener

public void removeChangeListener(ChangeListener l)
removes a change listener to this boolean
Parameters:
l - a ChangeListener that no longer wants to listen to change events from this NumberProperty

toString

public String toString()
converts the boolean to a String representation
Overrides:
toString in class Object
Returns:
the value of the boolean in String format