T - the type of the value we holdpublic class ValueHolder<T> extends AbstractValueModel<T> implements ValueModel<T>, DelegateAccess
| Constructor and Description |
|---|
ValueHolder()
Create a new holder with NULL as its value.
|
ValueHolder(T pValue)
Create a new holder with the handed object as its value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getValue()
Get the current value, during a callback this is the new value.
|
Object |
getValue(Object pValue)
Transform the handed value to a new value.
|
boolean |
isEditable()
Returns always true
|
void |
setValue(T pValue,
boolean pIsSetForced)
Set a new value, this will fire a ChangeEvent if the new value
is different from the old value.
|
addChangeListener, booleanValue, checkDisposed, dispose, doubleValue, fireStateChanged, floatValue, getDependents, getName, intValue, isDisposed, isInSetValue, isSetForced, longValue, onChangeSend, removeChangeListener, retractInterestsFor, setInSetValue, setName, setObjectValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueForced, signalExternalUpdate, stringValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, booleanValue, dispose, doubleValue, floatValue, getDependents, getName, intValue, isDisposed, isSetForced, longValue, onChangeSend, removeChangeListener, retractInterestsFor, setName, setObjectValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueForced, stringValuepublic ValueHolder()
public ValueHolder(T pValue)
pValue - the value we hold, may be nullpublic boolean isEditable()
isEditable in interface ValueModel<T>public void setValue(T pValue, boolean pIsSetForced)
setValue in interface ValueModel<T>pValue - the new value (null is o.k.)pIsSetForced - true if a forced setValue should be donepublic T getValue()
getValue in interface ValueModel<T>public Object getValue(Object pValue)
getValue in interface DelegateAccesspValue - the value we should assume as our valueCopyright © 2017 Jürgen Zeller (privat). All rights reserved.