com.glaivestone.mv
Class IntegerHolder

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

public class IntegerHolder
extends AbstractValueHolder

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

IntegerHolder

public IntegerHolder()
Creates a new value holder which contains 0.


IntegerHolder

public IntegerHolder(int aValue)
Creates a new value holder which contains the specified value.


IntegerHolder

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

Method Detail

getValue

public int getValue()
Answer the current value.


setValue

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


setValueAttribute

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


GFL 1.1 API