public class ScreenToolbarInserter
extends java.lang.Object
implements bibliothek.gui.dock.control.relocator.Inserter
Inserter
searches for toolbars using the ToolbarStrategy
, and adds them to ScreenDockStation
s, creating any additional layers
that are required for the operation.Constructor and Description |
---|
ScreenToolbarInserter(bibliothek.gui.DockController controller)
Creates a new inserter
|
Modifier and Type | Method and Description |
---|---|
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. |
public ScreenToolbarInserter(bibliothek.gui.DockController controller)
controller
- the controller in whose realm this inserter will be usedpublic bibliothek.gui.dock.station.StationDropOperation before(bibliothek.gui.dock.control.relocator.InserterSource source)
before
in interface bibliothek.gui.dock.control.relocator.Inserter
protected ToolbarStrategy getStrategy()
ToolbarStrategy
that is currently in use.public bibliothek.gui.dock.station.StationDropOperation after(bibliothek.gui.dock.control.relocator.InserterSource source)
after
in interface bibliothek.gui.dock.control.relocator.Inserter
protected void execute(bibliothek.gui.dock.control.relocator.InserterSource source, Orientation orientation)
source
has to be put
onto the ScreenDockStation
defined by source
.source
- all the information about the operationorientation
- the preferred orientation of the new window, might be
null