com.glaivestone.mv
Class ValueHolder

java.lang.Object
  |
  +--com.glaivestone.mv.AbstractValueHolder
        |
        +--com.glaivestone.mv.ValueHolder
Direct Known Subclasses:
StringHolder

public class ValueHolder
extends AbstractValueHolder

A value holder which contains an observed Object 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
ValueHolder()
          Creates a new value holder which contains null.
ValueHolder(java.lang.Object aValue)
          Creates a new value holder which contains the specified value.
 
Method Summary
 java.lang.Object getValue()
          Answer the current value.
 void setValue(java.lang.Object newValue)
          Set the current value.
 void setValueAttribute(java.lang.Object newValue)
          Set 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

ValueHolder

public ValueHolder()
Creates a new value holder which contains null.


ValueHolder

public ValueHolder(java.lang.Object aValue)
Creates a new value holder which contains the specified value.

Method Detail

getValue

public java.lang.Object getValue()
Answer the current value.


setValue

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


setValueAttribute

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


GFL 1.1 API