public class NullState extends AbstractState implements State, ChangeListener
mIsEnabled, mIsInitialized, mListenerList, mName, mReason| Constructor and Description |
|---|
NullState(ValueModel<?> pTrigger)
Create a new NullState, the given ValueModel serves as a
trigger for this state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
stateChanged(ChangeEvent pEvent)
Callback if our value model changes.
|
addChangeListener, checkDisposed, dispose, fireStateChanged, getChangeReason, getDependents, getName, isDisposed, isEnabled, isInitialized, removeChangeListener, setName, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChangeListener, dispose, getChangeReason, getDependents, getName, isDisposed, isEnabled, isInitialized, removeChangeListener, setNamepublic NullState(ValueModel<?> pTrigger)
pTrigger - the ValueModel to be used as a trigger for
this state, must not be null. If the value of this
ValueModel changes to null or vice versa, the listeners of
this state are notified.IllegalArgumentException - if pTrigger is nullpublic void stateChanged(ChangeEvent pEvent)
stateChanged in interface ChangeListenerpEvent - not usedCopyright © 2017 Jürgen Zeller (privat). All rights reserved.