public class PerspectivePlaceholderToolbarGrid extends ModeledPlaceholderToolbarGrid<PerspectiveDockable,PerspectiveStation,PerspectiveDockable>
PlaceholderToolbarGrid that uses PerspectiveDockables
and PerspectiveStations, 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 PlaceholderList<PerspectiveDockable,PerspectiveStation,PerspectiveDockable> |
createColumn()
Creates one column.
|
protected GridPlaceholderList<PerspectiveDockable,PerspectiveStation,PerspectiveDockable> |
createGrid()
Creates a new
GridPlaceholderList. |
protected void |
fill(PerspectiveDockable dockable,
ConvertedPlaceholderListItem item)
Called by
PlaceholderToolbarGrid.toMap(Map), this method should read persistent data
from dockable and write that data into item. |
protected Set<Path> |
getPlaceholders(PerspectiveDockable dockable)
Gets all placeholders that are associated with
dockable. |
void |
replace(PerspectiveDockable oldDockable,
PerspectiveDockable newDockable)
Replaces
oldDockable with newDockable. |
getModel, onInserted, onInserted, onInserted, onRemoved, onRemoved, onRemovedaddPlaceholder, 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, unbindpublic PerspectivePlaceholderToolbarGrid()
protected PlaceholderList<PerspectiveDockable,PerspectiveStation,PerspectiveDockable> createColumn()
PlaceholderToolbarGridcreateColumn in class PlaceholderToolbarGrid<PerspectiveDockable,PerspectiveStation,PerspectiveDockable>protected GridPlaceholderList<PerspectiveDockable,PerspectiveStation,PerspectiveDockable> createGrid()
PlaceholderToolbarGridGridPlaceholderList.createGrid in class PlaceholderToolbarGrid<PerspectiveDockable,PerspectiveStation,PerspectiveDockable>protected Set<Path> getPlaceholders(PerspectiveDockable dockable)
PlaceholderToolbarGriddockable.getPlaceholders in class PlaceholderToolbarGrid<PerspectiveDockable,PerspectiveStation,PerspectiveDockable>dockable - some element used by this gridpublic void replace(PerspectiveDockable oldDockable, PerspectiveDockable newDockable)
oldDockable with newDockable.oldDockable - a child of this gridnewDockable - the replacement of oldDockableprotected void fill(PerspectiveDockable dockable, ConvertedPlaceholderListItem item)
PlaceholderToolbarGridPlaceholderToolbarGrid.toMap(Map), this method should read persistent data
from dockable and write that data into item.fill in class PlaceholderToolbarGrid<PerspectiveDockable,PerspectiveStation,PerspectiveDockable>dockable - the dockable to readitem - the item to write intoCopyright © 2018. All rights reserved.