bibliothek.gui.dock.station.toolbar
Class ToolbarDockStationMerger

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.AbstractToolbarMerger
      extended by bibliothek.gui.dock.station.toolbar.ToolbarDockStationMerger
All Implemented Interfaces:
bibliothek.gui.dock.control.relocator.Merger

public class ToolbarDockStationMerger
extends AbstractToolbarMerger

An algorithm that allows to merge ToolbarDockStations together.

Author:
Herve Guillaume, Benjamin Sigg

Constructor Summary
ToolbarDockStationMerger()
           
 
Method Summary
 void merge(bibliothek.gui.dock.station.StationDropOperation operation, bibliothek.gui.DockStation parent, bibliothek.gui.DockStation child)
           
protected  boolean validType(AbstractToolbarDockStation station)
          Checks whether the type of station is valid for this merger.
 
Methods inherited from class bibliothek.gui.dock.station.toolbar.AbstractToolbarMerger
canMerge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolbarDockStationMerger

public ToolbarDockStationMerger()
Method Detail

validType

protected boolean validType(AbstractToolbarDockStation station)
Description copied from class: AbstractToolbarMerger
Checks whether the type of station is valid for this merger.

Specified by:
validType in class AbstractToolbarMerger
Parameters:
station - can either be the parent of the child that is merged
Returns:
true if the type is accepted

merge

public void merge(bibliothek.gui.dock.station.StationDropOperation operation,
                  bibliothek.gui.DockStation parent,
                  bibliothek.gui.DockStation child)