bibliothek.gui.dock.station.toolbar
Class AbstractToolbarMerger

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

public abstract class AbstractToolbarMerger
extends Object
implements bibliothek.gui.dock.control.relocator.Merger

An algorithm allowing to merge two AbstractToolbarDockStations together.

Author:
Benjamin Sigg, Herve Guillaume

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

Constructor Detail

AbstractToolbarMerger

public AbstractToolbarMerger()
Method Detail

validType

protected abstract boolean validType(AbstractToolbarDockStation station)
Checks whether the type of station is valid for this merger.

Parameters:
station - can either be the parent of the child that is merged
Returns:
true if the type is accepted

canMerge

public boolean canMerge(bibliothek.gui.dock.station.StationDropOperation operation,
                        bibliothek.gui.DockStation parent,
                        bibliothek.gui.DockStation child)
Specified by:
canMerge in interface bibliothek.gui.dock.control.relocator.Merger