public class EnabledChecker extends java.lang.Object implements IEnabledChecker
Constructor and Description |
---|
EnabledChecker()
Creates a new enabled checker
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(IChangeListener listener)
Adds a change listener
|
void |
fireEnabledStateChanged()
Fires a changed event on all registered change listeners
|
IEnabledState |
getEnabledState()
Gets the enabled state
|
void |
removeChangeListener(IChangeListener listener)
Removes a changed listener
|
void |
setDisabled(java.lang.String reason)
Sets a disabled EnabledState with a given reason
|
void |
setEnabled()
Sets the enables state EnabledState.ENABLED
|
void |
setEnabledState(IEnabledState enabledState)
Sets the enabled state
|
public final void setEnabledState(IEnabledState enabledState)
enabledState
- The enabled state to set, must not be nullpublic final void setEnabled()
public final void setDisabled(java.lang.String reason)
reason
- The reason, may be empty and nullpublic final IEnabledState getEnabledState()
IEnabledChecker
getEnabledState
in interface IEnabledChecker
public final void addChangeListener(IChangeListener listener)
IChangeObservable
addChangeListener
in interface IChangeObservable
listener
- The listener to addpublic final void removeChangeListener(IChangeListener listener)
IChangeObservable
removeChangeListener
in interface IChangeObservable
listener
- The listener to removepublic final void fireEnabledStateChanged()
Siehe auch Jowidgets Nutzerhandbuch