bibliothek.gui.dock.station
Interface Combiner
- All Known Implementing Classes:
- BasicCombiner, CombinerWrapper
public interface Combiner
A Combiner merges two Dockables into
one Dockable. How this is done, is up to the Combiner, but
most Combiners will create a new DockStation and put the Dockables
onto this new station.
combine
Dockable combine(Dockable old,
Dockable drop,
DockStation parent,
PlaceholderMap placeholders)
- Merges the Dockable
old and drop into
a new Dockable. This method may set the DockController of
the create element in order to initialize it more efficiently
- Parameters:
old - a Dockable which was sitting on the DockStation parent.
The parent of old is currently set to null.drop - a Dockable that has currently no parent, and that was
dragged over oldparent - a DockStation which will become the parent of the
result of this methodplaceholders - a set of placeholders that were created earlier, not necessarily by a
DockStation that was created by this combiner. Might be null.
- Returns:
- The combination of
old and drop