henplus.property
Class BooleanPropertyHolder

java.lang.Object
  extended by henplus.property.PropertyHolder
      extended by henplus.property.EnumeratedPropertyHolder
          extended by henplus.property.BooleanPropertyHolder
Direct Known Subclasses:
EchoCommandProperty

public abstract class BooleanPropertyHolder
extends EnumeratedPropertyHolder

A boolean property.


Field Summary
 
Fields inherited from class henplus.property.PropertyHolder
_propertyValue
 
Constructor Summary
BooleanPropertyHolder()
           
BooleanPropertyHolder(boolean initialValue)
           
 
Method Summary
abstract  void booleanPropertyChanged(boolean newValue)
          to be overridden to get informed of the boolean change.
protected  void enumeratedPropertyChanged(int index, String value)
          to be overridden to get informed of the change and veto it.
 
Methods inherited from class henplus.property.EnumeratedPropertyHolder
completeValue, propertyChanged
 
Methods inherited from class henplus.property.PropertyHolder
getDefaultValue, getLongDescription, getShortDescription, getValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanPropertyHolder

public BooleanPropertyHolder()

BooleanPropertyHolder

public BooleanPropertyHolder(boolean initialValue)
Method Detail

enumeratedPropertyChanged

protected final void enumeratedPropertyChanged(int index,
                                               String value)
                                        throws Exception
Description copied from class: EnumeratedPropertyHolder
to be overridden to get informed of the change and veto it.

Specified by:
enumeratedPropertyChanged in class EnumeratedPropertyHolder
Parameters:
index - the index of the property that changed
value - the new value of that property
Throws:
Exception - to veto that change.

booleanPropertyChanged

public abstract void booleanPropertyChanged(boolean newValue)
                                     throws Exception
to be overridden to get informed of the boolean change. Throw an Exception if this change is not possible.

Throws:
Exception


? 1997..2006 Henner Zeller