|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.control.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. |
protected boolean |
test(DockStation station)
Tries to replace station with its only child or
remove station if it has no children at all. |
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.protected boolean test(DockStation station)
station with its only child or
remove station if it has no children at all. If the
parent of station refuses to accept the replacement
or station refuses to let its child go, nothing will
happen.
station - the station to test
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||