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.
If the argument parent in combiner is a Dockable, then it's title and icon are copied onto the new station.

Author:
Benjamin Sigg

Constructor Summary
BasicCombiner()
           
 
Method Summary
 Dockable combine(Dockable old, Dockable drop, DockStation parent)
          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)
Description copied from interface: Combiner
Merges the Dockable old and drop into a new Dockable.

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
Returns:
The combination of old and drop