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 GridPlaceholderList<D,S,P extends PlaceholderListItem<D>> extends PlaceholderList<ColumnItem<D,S,P>,ColumnItem<D,S,P>,Column<D,S,P>>
PlaceholderList.Filter<M>, PlaceholderList.Item, PlaceholderList.LevelPLACEHOLDER_MAP_FORMAT| Constructor and Description |
|---|
GridPlaceholderList() |
| Modifier and Type | Method and Description |
|---|---|
Column<D,S,P> |
createColumn(PlaceholderList<D,S,P> content)
Factory method creating an new
Column that can be added to this
list. |
protected ColumnItem<D,S,P>[] |
getChildren(ColumnItem<D,S,P> station) |
PlaceholderListItemConverter<D,P> |
getConverter()
Gets the converter that is used to read and write
Columns. |
protected abstract D[] |
getItemChildren(S station)
Gets all the children of
station |
protected abstract Path |
getItemPlaceholder(D dockable)
Gest the placeholder of
dockable. |
protected abstract PlaceholderMap |
getItemPlaceholders(S station)
Gets all the placeholders of
station |
protected Path |
getPlaceholder(ColumnItem<D,S,P> dockable) |
protected PlaceholderMap |
getPlaceholders(ColumnItem<D,S,P> station) |
protected abstract S |
itemToStation(D dockable)
Converts the item
dockable to a station. |
void |
setConverter(PlaceholderListItemConverter<D,P> converter)
Sets the
PlaceholderListItemConverter which should be used to
convert the internal lists of this grid. |
protected abstract void |
setItemPlaceholders(S station,
PlaceholderMap map)
Sets the placeholders that are to be used by
station |
protected void |
setPlaceholders(ColumnItem<D,S,P> station,
PlaceholderMap map) |
protected ColumnItem<D,S,P> |
toStation(ColumnItem<D,S,P> dockable) |
protected String |
toString(ColumnItem<D,S,P> dockable) |
addPlaceholder, baseToLevel, bind, clear, dockables, getDockableAt, getDockableIndex, getItem, getItem, getListIndex, getListIndex, getMap, getMetaMap, getNextListIndex, getStrategy, hasPlaceholder, insertAllPlaceholders, levelToBase, list, listPlaceholders, purePlaceholders, put, put, read, read, remove, remove, removeAll, removeAll, setStrategy, size, toMap, toString, unbindpublic Column<D,S,P> createColumn(PlaceholderList<D,S,P> content)
Column that can be added to this
list.content - the content of the column, not nullpublic void setConverter(PlaceholderListItemConverter<D,P> converter)
PlaceholderListItemConverter which should be used to
convert the internal lists of this grid.converter - the converter to use, can be nullpublic PlaceholderListItemConverter<D,P> getConverter()
Columns.nullprotected Path getPlaceholder(ColumnItem<D,S,P> dockable)
getPlaceholder in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected String toString(ColumnItem<D,S,P> dockable)
toString in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected ColumnItem<D,S,P> toStation(ColumnItem<D,S,P> dockable)
toStation in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected PlaceholderMap getPlaceholders(ColumnItem<D,S,P> station)
getPlaceholders in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected void setPlaceholders(ColumnItem<D,S,P> station, PlaceholderMap map)
setPlaceholders in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected ColumnItem<D,S,P>[] getChildren(ColumnItem<D,S,P> station)
getChildren in class PlaceholderList<ColumnItem<D,S,P extends PlaceholderListItem<D>>,ColumnItem<D,S,P extends PlaceholderListItem<D>>,Column<D,S,P extends PlaceholderListItem<D>>>protected abstract S itemToStation(D dockable)
dockable to a station.dockable - the item to convertnullprotected abstract D[] getItemChildren(S station)
stationstation - the station whose children are searchedprotected abstract Path getItemPlaceholder(D dockable)
dockable.dockable - some element of this gridnullprotected abstract PlaceholderMap getItemPlaceholders(S station)
stationstation - some stationnullprotected abstract void setItemPlaceholders(S station, PlaceholderMap map)
stationstation - the station whose layout is to be updatedmap - the new placeholders, never nullCopyright © 2018. All rights reserved.