bibliothek.gui.dock.themes.basic
Class BasicCombiner

java.lang.Object
  extended by bibliothek.gui.dock.themes.basic.BasicCombiner
All Implemented Interfaces:
Combiner

public class BasicCombiner
extends Object
implements Combiner

A simple implementation of Combiner, which merges two Dockables by creating a StackDockStation, and putting the children onto this station.

Author:
Benjamin Sigg

Constructor Summary
BasicCombiner()
           
 
Method Summary
 Dockable combine(Dockable old, Dockable drop, DockStation parent, PlaceholderMap placeholders)
          Merges the Dockable old and drop into a new Dockable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCombiner

public BasicCombiner()
Method Detail

combine

public Dockable combine(Dockable old,
                        Dockable drop,
                        DockStation parent,
                        PlaceholderMap placeholders)
Description copied from interface: Combiner
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

Specified by:
combine in interface Combiner
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