public abstract class TabDisablingStrategyObserver extends 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 DisablingStrategypublic 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 testDisablingStrategypublic abstract void setDisabled(Dockable dockable, boolean disabled)
dockable was enabled or disabled.dockable - the element whose state changeddisabled - the new stateCopyright © 2017 Docking Frames. All rights reserved.