public abstract class AbstractSwingState extends AbstractState implements State
| Modifier and Type | Field and Description | 
|---|---|
protected boolean | 
mSilent
flag if we ignore all changes 
 | 
mIsEnabled, mIsInitialized, mListenerList, mName, mReason| Constructor and Description | 
|---|
AbstractSwingState()
The constructor initializes some member variables. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkStateChange()
Check if our monitored state changed, if it did fireStateChanged(). 
 | 
protected abstract boolean | 
getInternalState()
Template method for the Strategy pattern: a derived class should
 return the state of its state abstraction. 
 | 
boolean | 
isSilent()
Checks the silent mode, returns true if we ignore a changing document. 
 | 
protected abstract void | 
setReason()
Template method for the Strategy pattern: a derived class should set
 mReason in this method. 
 | 
void | 
setSilent(boolean pSilent)
Switches silent mode on or off. 
 | 
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 AbstractSwingState()
public boolean isSilent()
public void setSilent(boolean pSilent)
pSilent - true if we should ignore changesprotected void checkStateChange()
protected abstract boolean getInternalState()
protected abstract void setReason()
Copyright © 2017 Jürgen Zeller (privat). All rights reserved.