|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.disable.TabDisablingStrategyObserver
public abstract class TabDisablingStrategyObserver
This class offers a convenient way to observe a set of Dockable and find
out whether their tab should be disabled according to the current DisablingStrategy.
| Constructor Summary | |
|---|---|
TabDisablingStrategyObserver()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TabDisablingStrategyObserver()
| Method Detail |
|---|
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 observed
dockable - the new itempublic void remove(Dockable dockable)
dockable from the set of dockables that must be observed
dockable - the item to removepublic boolean isDisabled(Dockable dockable)
dockable is disabled.
dockable - the item to test
DisablingStrategy
public abstract void setDisabled(Dockable dockable,
boolean disabled)
dockable was enabled or disabled.
dockable - the elemnt whose state changeddisabled - the new state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||