D - the kind of object that should be treated as DockableS - the kind of object that should be treated as DockStationP - the type of item which represents a Dockablepublic abstract class ModeledPlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>> extends PlaceholderToolbarGrid<D,S,P>
PlaceholderToolbarGrid which offers a ToolbarColumnModel to access the dockables.| Constructor and Description |
|---|
ModeledPlaceholderToolbarGrid() |
| Modifier and Type | Method and Description |
|---|---|
ToolbarColumnModel<D,P> |
getModel()
Gets access to a simplified view of this grid.
|
protected void |
onInserted()
Called if all columns were inserted at the same time.
|
protected void |
onInserted(PlaceholderList<D,S,P> column,
int index)
Called if a new column
column was added to this grid. |
protected void |
onInserted(PlaceholderList<D,S,P> column,
int columnIndex,
P item,
int itemIndex)
Called if
item was added to the column column. |
protected void |
onRemoved()
Called if all columns were removed from this grid
|
protected void |
onRemoved(PlaceholderList<D,S,P> column,
int index)
Called if the column
column was removed from this grid. |
protected void |
onRemoved(PlaceholderList<D,S,P> column,
int columnIndex,
P item,
int itemIndex)
Called if
item was removed to the column column. |
addPlaceholder, allColumns, bind, clear, columns, createColumn, createGrid, fill, fromMap, fromMap, get, get, get, getColumn, getColumn, getColumn, getColumnContent, getColumnCount, getLine, getLine, getLine, getLine, getLineCount, getPlaceholders, getStrategy, getTotalColumnCount, hasPlaceholder, init, insert, insert, insert, insertPlaceholder, items, move, put, remove, removePlaceholder, setStrategy, size, toMap, toMap, unbindpublic ToolbarColumnModel<D,P> getModel()
nullprotected void onInserted(PlaceholderList<D,S,P> column, int columnIndex, P item, int itemIndex)
PlaceholderToolbarGriditem was added to the column column.onInserted in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>column - a visible columncolumnIndex - the index of the columnitem - a new item of columnitemIndex - the index of the new itemprotected void onRemoved(PlaceholderList<D,S,P> column, int columnIndex, P item, int itemIndex)
PlaceholderToolbarGriditem was removed to the column column.onRemoved in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>column - a visible columncolumnIndex - the index of the columnitem - the removed item of columnitemIndex - the index the item had before removingprotected void onInserted(PlaceholderList<D,S,P> column, int index)
PlaceholderToolbarGridcolumn was added to this grid. The column may not contain any elements when
this method is called.onInserted in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>column - the new columnindex - the index of the new columnprotected void onRemoved(PlaceholderList<D,S,P> column, int index)
PlaceholderToolbarGridcolumn was removed from this grid. The column may still contain elements when it
is removed.onRemoved in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>column - the removed columnindex - the index the column had before it was removedprotected void onInserted()
PlaceholderToolbarGridonInserted in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>protected void onRemoved()
PlaceholderToolbarGridonRemoved in class PlaceholderToolbarGrid<D,S,P extends PlaceholderListItem<D>>Copyright © 2018. All rights reserved.