T - the type we holdpublic class UnmodifiableValueHolder<T> extends AbstractValueModel<T> implements DelegateAccess
AbstractValueModel.signalExternalUpdate()
afterwards so the listeners can be notified.| Constructor and Description |
|---|
UnmodifiableValueHolder()
Create a new holder with NULL as its value.
|
UnmodifiableValueHolder(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 false
|
void |
setValue(T pValue,
boolean pIsSetForced)
Throws an exception.
|
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, stringValuepublic UnmodifiableValueHolder()
public UnmodifiableValueHolder(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 - ignoredpIsSetForced - ignoredUnsupportedOperationException - alwayspublic 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.