|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Merger
An algorithm used during drag and drop to merge two DockStation
s.
Method Summary | |
---|---|
boolean |
canMerge(DockStation parent,
DockStation child)
Checks whether merge(DockStation, DockStation) will succeed or not. |
void |
merge(DockStation parent,
DockStation child)
Moves all children of child to parent , leaving child
empty. |
Method Detail |
---|
boolean canMerge(DockStation parent, DockStation child)
merge(DockStation, DockStation)
will succeed or not. This
method will only be called if parent
would accept all children
of child
.
parent
- an existing stationchild
- a station that is dragged around and may be dropped onto parent
merge(DockStation, DockStation)
will succeedvoid merge(DockStation parent, DockStation child)
child
to parent
, leaving child
empty. This method is only called if canMerge
returned true
and if the accept
-methods allow the operation.
parent
- child
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |