com.glaivestone.mv
Class BooleanHolder

java.lang.Object
  |
  +--com.glaivestone.mv.AbstractValueHolder
        |
        +--com.glaivestone.mv.BooleanHolder

public class BooleanHolder
extends AbstractValueHolder

A value holder which contains an observed boolean value.

Author:
Deb Lewis

Field Summary
 
Fields inherited from class com.glaivestone.mv.AbstractValueHolder
DEFAULT_NOTIFICATION_ORDER, NOTIFY_FIRST_TO_LAST, NOTIFY_LAST_TO_FIRST
 
Constructor Summary
BooleanHolder()
          Creates a new boolean value holder which contains false.
BooleanHolder(boolean aValue)
          Creates a new boolean value holder which contains the specified value.
BooleanHolder(java.lang.String aValue)
          Creates a new boolean value holder which contains the specified value.
 
Method Summary
 boolean getValue()
          Answer the current value.
 void setValue(boolean newValue)
          Set the current value.
 void setValueAttribute(boolean newValue)
          Set the current value.
 void toggleValue()
          Toggle the current value.
 
Methods inherited from class com.glaivestone.mv.AbstractValueHolder
addChangeListener, removeChangeListener, setNotificationOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanHolder

public BooleanHolder()
Creates a new boolean value holder which contains false.


BooleanHolder

public BooleanHolder(boolean aValue)
Creates a new boolean value holder which contains the specified value.


BooleanHolder

public BooleanHolder(java.lang.String aValue)
Creates a new boolean value holder which contains the specified value.

Method Detail

getValue

public boolean getValue()
Answer the current value.


setValue

public void setValue(boolean newValue)
Set the current value. Fire the ValueChange event if the value is changed.


setValueAttribute

public void setValueAttribute(boolean newValue)
Set the current value. Do not fire the ValueChange event.


toggleValue

public void toggleValue()
Toggle the current value. Fires the ValueChange event.


GFL 1.1 API