|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.disable.ActionDisablingStrategyObserver
public abstract class ActionDisablingStrategyObserver
This class offers a convenient way to connect a DockAction
with the current
DisablingStrategy
. It only requires the DockAction
to call bind(Dockable)
and unbind(Dockable)
in order to observe a Dockable
.
Constructor Summary | |
---|---|
ActionDisablingStrategyObserver(DockAction action)
Creates a new observer. |
Method Summary | |
---|---|
void |
bind(Dockable dockable)
Must be called to inform this observer that dockable is to be observed. |
boolean |
isDisabled(Dockable dockable)
Tells whether the action of dockable is disabled. |
protected abstract void |
setDisabled(Dockable dockable,
boolean disabled)
Called if the disabled state of the action changed. |
protected abstract void |
setDisabled(Set<Dockable> dockable,
boolean disabled)
Called if an entire set of Dockable s changed their state. |
void |
unbind(Dockable dockable)
Must be called to inform this observer that dockable is no longer to be observed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionDisablingStrategyObserver(DockAction action)
action
- the action whose disabled state will be monitored.Method Detail |
---|
public void bind(Dockable dockable)
dockable
is to be observed. Can be
called multiple times.
dockable
- the item to observepublic void unbind(Dockable dockable)
dockable
is no longer to be observed.
Can be called multiple times.
dockable
- the item to observeprotected abstract void setDisabled(Dockable dockable, boolean disabled)
dockable
- the dockable for which the state changeddisabled
- the new stateprotected abstract void setDisabled(Set<Dockable> dockable, boolean disabled)
Dockable
s changed their state.
dockable
- the items that changed their statedisabled
- the new statepublic boolean isDisabled(Dockable dockable)
dockable
is disabled.
dockable
- the element whose action state is searched
true
if the action is disabled, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |