public class PerspectivePlaceholderToolbarGrid extends ModeledPlaceholderToolbarGrid<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
PlaceholderToolbarGrid
that uses PerspectiveDockable
s
and PerspectiveStation
s, thus is ideal to be used in the perspective API.Constructor and Description |
---|
PerspectivePlaceholderToolbarGrid()
Creates a new, empty grid.
|
Modifier and Type | Method and Description |
---|---|
protected bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable> |
createColumn()
Creates one column.
|
protected GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable> |
createGrid()
Creates a new
GridPlaceholderList . |
protected void |
fill(bibliothek.gui.dock.perspective.PerspectiveDockable dockable,
bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
Called by
PlaceholderToolbarGrid.toMap(Map) , this method should read persistent data
from dockable and write that data into item . |
protected Set<bibliothek.util.Path> |
getPlaceholders(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
Gets all placeholders that are associated with
dockable . |
void |
replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable,
bibliothek.gui.dock.perspective.PerspectiveDockable newDockable)
Replaces
oldDockable with newDockable . |
getModel, onInserted, onInserted, onInserted, onRemoved, onRemoved, onRemoved
addPlaceholder, allColumns, bind, clear, columns, fromMap, fromMap, get, get, get, getColumn, getColumn, getColumn, getColumnContent, getColumnCount, getLine, getLine, getLine, getLine, getLineCount, getStrategy, getTotalColumnCount, hasPlaceholder, init, insert, insert, insert, insertPlaceholder, items, move, put, remove, removePlaceholder, setStrategy, size, toMap, toMap, unbind
public PerspectivePlaceholderToolbarGrid()
protected bibliothek.gui.dock.station.support.PlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable> createColumn()
PlaceholderToolbarGrid
createColumn
in class PlaceholderToolbarGrid<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
protected GridPlaceholderList<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable> createGrid()
PlaceholderToolbarGrid
GridPlaceholderList
.createGrid
in class PlaceholderToolbarGrid<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
protected Set<bibliothek.util.Path> getPlaceholders(bibliothek.gui.dock.perspective.PerspectiveDockable dockable)
PlaceholderToolbarGrid
dockable
.getPlaceholders
in class PlaceholderToolbarGrid<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
dockable
- some element used by this gridpublic void replace(bibliothek.gui.dock.perspective.PerspectiveDockable oldDockable, bibliothek.gui.dock.perspective.PerspectiveDockable newDockable)
oldDockable
with newDockable
.oldDockable
- a child of this gridnewDockable
- the replacement of oldDockable
protected void fill(bibliothek.gui.dock.perspective.PerspectiveDockable dockable, bibliothek.gui.dock.station.support.ConvertedPlaceholderListItem item)
PlaceholderToolbarGrid
PlaceholderToolbarGrid.toMap(Map)
, this method should read persistent data
from dockable
and write that data into item
.fill
in class PlaceholderToolbarGrid<bibliothek.gui.dock.perspective.PerspectiveDockable,bibliothek.gui.dock.perspective.PerspectiveStation,bibliothek.gui.dock.perspective.PerspectiveDockable>
dockable
- the dockable to readitem
- the item to write into