bibliothek.gui.dock.station.screen
Class ScreenToolbarInserter

java.lang.Object
  extended by bibliothek.gui.dock.station.screen.ScreenToolbarInserter
All Implemented Interfaces:
bibliothek.gui.dock.control.relocator.Inserter

public class ScreenToolbarInserter
extends Object
implements bibliothek.gui.dock.control.relocator.Inserter

This Inserter searches for toolbars using the ToolbarStrategy , and adds them to ScreenDockStations, creating any additional layers that are required for the operation.

Author:
Benjamin Sigg

Constructor Summary
ScreenToolbarInserter(bibliothek.gui.DockController controller)
          Creates a new inserter
 
Method Summary
 bibliothek.gui.dock.station.StationDropOperation after(bibliothek.gui.dock.control.relocator.InserterSource source)
           
 bibliothek.gui.dock.station.StationDropOperation before(bibliothek.gui.dock.control.relocator.InserterSource source)
           
protected  void execute(bibliothek.gui.dock.control.relocator.InserterSource source, Orientation orientation)
          Called if the toolbar item defined by source has to be put onto the ScreenDockStation defined by source.
protected  ToolbarStrategy getStrategy()
          Gets the ToolbarStrategy that is currently in use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenToolbarInserter

public ScreenToolbarInserter(bibliothek.gui.DockController controller)
Creates a new inserter

Parameters:
controller - the controller in whose realm this inserter will be used
Method Detail

before

public bibliothek.gui.dock.station.StationDropOperation before(bibliothek.gui.dock.control.relocator.InserterSource source)
Specified by:
before in interface bibliothek.gui.dock.control.relocator.Inserter

getStrategy

protected ToolbarStrategy getStrategy()
Gets the ToolbarStrategy that is currently in use.

Returns:
the current strategy

after

public bibliothek.gui.dock.station.StationDropOperation after(bibliothek.gui.dock.control.relocator.InserterSource source)
Specified by:
after in interface bibliothek.gui.dock.control.relocator.Inserter

execute

protected void execute(bibliothek.gui.dock.control.relocator.InserterSource source,
                       Orientation orientation)
Called if the toolbar item defined by source has to be put onto the ScreenDockStation defined by source.

Parameters:
source - all the information about the operation
orientation - the preferred orientation of the new window, might be null