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.


Method Summary
 Dockable combine(Dockable old, Dockable drop, DockStation parent, PlaceholderMap placeholders)
          Merges the Dockable old and drop into a new Dockable.
 

Method Detail

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 old
parent - a DockStation which will become the parent of the result of this method
placeholders - 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