public class ScreenToolbarInserter extends Object implements Inserter
Inserter searches for toolbars using the ToolbarStrategy
, and adds them to ScreenDockStations, creating any additional layers
that are required for the operation.| Constructor and Description |
|---|
ScreenToolbarInserter(DockController controller)
Creates a new inserter
|
| Modifier and Type | Method and Description |
|---|---|
StationDropOperation |
after(InserterSource source) |
StationDropOperation |
before(InserterSource source) |
protected void |
execute(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(DockController controller)
controller - the controller in whose realm this inserter will be usedpublic StationDropOperation before(InserterSource source)
protected ToolbarStrategy getStrategy()
ToolbarStrategy that is currently in use.public StationDropOperation after(InserterSource source)
protected void execute(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
nullCopyright © 2018. All rights reserved.