public abstract class TabDisablingStrategyObserver
extends java.lang.Object
Dockable
and find
out whether their tab should be disabled according to the current DisablingStrategy
.Constructor and Description |
---|
TabDisablingStrategyObserver() |
Modifier and Type | Method and Description |
---|---|
void |
add(Dockable dockable)
Adds
dockable to the set of dockables that must be observed |
boolean |
isDisabled(Dockable dockable)
Tells whether the tab of
dockable is disabled. |
void |
remove(Dockable dockable)
Removes
dockable from the set of dockables that must be observed |
void |
setController(DockController controller)
Sets the controller in whose realm this observer is used.
|
abstract void |
setDisabled(Dockable dockable,
boolean disabled)
Called if
dockable was enabled or disabled. |
public void setController(DockController controller)
controller
- the controller which provides the DisablingStrategy
public void add(Dockable dockable)
dockable
to the set of dockables that must be observeddockable
- the new itempublic void remove(Dockable dockable)
dockable
from the set of dockables that must be observeddockable
- the item to removepublic boolean isDisabled(Dockable dockable)
dockable
is disabled.dockable
- the item to testDisablingStrategy
public abstract void setDisabled(Dockable dockable, boolean disabled)
dockable
was enabled or disabled.dockable
- the element whose state changeddisabled
- the new state