public class SwingEnabledState extends AbstractSwingState implements State, PropertyChangeListener
mSilentmIsEnabled, mIsInitialized, mListenerList, mName, mReason| Constructor and Description | 
|---|
SwingEnabledState(Action pAction)
Creates a new initialized state with the Swing Action as its
 state backing store. 
 | 
SwingEnabledState(JComponent pComponent)
Creates a new initialized state with the Swing JComponent as its
 state backing store. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
getInternalState()
Returns the enabled state of our component/action. 
 | 
void | 
propertyChange(PropertyChangeEvent pEvent)
This method gets called when a bound property is changed. 
 | 
protected void | 
setReason()
Set the source of the state as the reason for a change. 
 | 
checkStateChange, isSilent, setSilentaddChangeListener, 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 SwingEnabledState(JComponent pComponent)
pComponent - the state source for this stateIllegalArgumentException - if pComponent is nullpublic SwingEnabledState(Action pAction)
pAction - the state source for this stateIllegalArgumentException - if pAction is nullpublic void propertyChange(PropertyChangeEvent pEvent)
propertyChange in interface PropertyChangeListenerpEvent - A PropertyChangeEvent object describing the event source
         and the property that has changed.protected void setReason()
setReason in class AbstractSwingStateprotected boolean getInternalState()
getInternalState in class AbstractSwingStateCopyright © 2017 Jürgen Zeller (privat). All rights reserved.