|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.SingleParentRemover
public class SingleParentRemover
An observer of a DockController
. The remover
ensures that there is no dockable DockStation
with only one
or none child.
Constructor Summary | |
---|---|
SingleParentRemover()
|
Method Summary | |
---|---|
void |
install(DockController controller)
Commands this remover to observe controller . |
protected boolean |
shouldTest(DockStation station)
Tells whether station should be automatically
removed or just be ignored. |
void |
testAll(DockController controller)
Tests all stations of controller and removes
as many of them as possible |
void |
uninstall(DockController controller)
Commands this remover that it should no longer observe controller . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleParentRemover()
Method Detail |
---|
public void install(DockController controller)
controller
.
controller
- a controller to observepublic void uninstall(DockController controller)
controller
.
controller
- a controllerpublic void testAll(DockController controller)
controller
and removes
as many of them as possible
controller
- the controller to testprotected boolean shouldTest(DockStation station)
station
should be automatically
removed or just be ignored.
station
- a station to test
true
if the station may be removed
by this remover, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |