|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.control.relocator.StackMerger
public class StackMerger
This merger takes two StackDockStation
s and merges them into one.
Constructor Summary | |
---|---|
StackMerger()
|
Method Summary | |
---|---|
boolean |
canMerge(DockStation parent,
DockStation child)
Checks whether Merger.merge(DockStation, DockStation) will succeed or not. |
void |
merge(DockStation parent,
DockStation child)
Moves all children of child to parent , leaving child
empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackMerger()
Method Detail |
---|
public boolean canMerge(DockStation parent, DockStation child)
Merger
Merger.merge(DockStation, DockStation)
will succeed or not. This
method will only be called if parent
would accept all children
of child
. This method may be called during "drop" and during "move" operations.
canMerge
in interface Merger
parent
- an existing stationchild
- a station that is dragged around and may be dropped onto parent
Merger.merge(DockStation, DockStation)
will succeedpublic void merge(DockStation parent, DockStation child)
Merger
child
to parent
, leaving child
empty. This method is only called if canMerge
returned true
and if the accept
-methods allow the operation.child
is not parent
, then child
will be removed
from its parent. Otherwise the child remains, allowing this Merger
to reuse it.
merge
in interface Merger
parent
- the new parent of the childrenchild
- the station to disolve
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |