D
- the kind of object that should be treated as Dockable
S
- the kind of object that should be treated as DockStation
P
- the type of item which represents a Dockable
public abstract class GridPlaceholderList<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>> extends bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.Column<D,S,P>>
PlaceholderList
stores GridPlaceholderList.Column
s as items, where one
GridPlaceholderList.Column
is just another PlaceholderList
.Modifier and Type | Class and Description |
---|---|
static interface |
GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>
Represents one list of
Dockable s. |
static interface |
GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>
An class representing either a
GridPlaceholderList.Column or a DockElement . |
Constructor and Description |
---|
GridPlaceholderList() |
Modifier and Type | Method and Description |
---|---|
GridPlaceholderList.Column<D,S,P> |
createColumn(bibliothek.gui.dock.station.support.PlaceholderList<D,S,P> content)
Factory method creating an new
GridPlaceholderList.Column that can be added to this
list. |
protected GridPlaceholderList.ColumnItem<D,S,P>[] |
getChildren(GridPlaceholderList.ColumnItem<D,S,P> station) |
bibliothek.gui.dock.station.support.PlaceholderListItemConverter<D,P> |
getConverter()
Gets the converter that is used to read and write
GridPlaceholderList.Column s. |
protected abstract D[] |
getItemChildren(S station)
Gets all the children of
station |
protected abstract bibliothek.util.Path |
getItemPlaceholder(D dockable)
Gest the placeholder of
dockable . |
protected abstract bibliothek.gui.dock.station.support.PlaceholderMap |
getItemPlaceholders(S station)
Gets all the placeholders of
station |
protected bibliothek.util.Path |
getPlaceholder(GridPlaceholderList.ColumnItem<D,S,P> dockable) |
protected bibliothek.gui.dock.station.support.PlaceholderMap |
getPlaceholders(GridPlaceholderList.ColumnItem<D,S,P> station) |
protected abstract S |
itemToStation(D dockable)
Converts the item
dockable to a station. |
void |
setConverter(bibliothek.gui.dock.station.support.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,
bibliothek.gui.dock.station.support.PlaceholderMap map)
Sets the placeholders that are to be used by
station |
protected void |
setPlaceholders(GridPlaceholderList.ColumnItem<D,S,P> station,
bibliothek.gui.dock.station.support.PlaceholderMap map) |
protected GridPlaceholderList.ColumnItem<D,S,P> |
toStation(GridPlaceholderList.ColumnItem<D,S,P> dockable) |
protected String |
toString(GridPlaceholderList.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, unbind
public GridPlaceholderList.Column<D,S,P> createColumn(bibliothek.gui.dock.station.support.PlaceholderList<D,S,P> content)
GridPlaceholderList.Column
that can be added to this
list.content
- the content of the column, not null
public void setConverter(bibliothek.gui.dock.station.support.PlaceholderListItemConverter<D,P> converter)
PlaceholderListItemConverter
which should be used to
convert the internal lists of this grid.converter
- the converter to use, can be null
public bibliothek.gui.dock.station.support.PlaceholderListItemConverter<D,P> getConverter()
GridPlaceholderList.Column
s.null
protected bibliothek.util.Path getPlaceholder(GridPlaceholderList.ColumnItem<D,S,P> dockable)
getPlaceholder
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected String toString(GridPlaceholderList.ColumnItem<D,S,P> dockable)
toString
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected GridPlaceholderList.ColumnItem<D,S,P> toStation(GridPlaceholderList.ColumnItem<D,S,P> dockable)
toStation
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected bibliothek.gui.dock.station.support.PlaceholderMap getPlaceholders(GridPlaceholderList.ColumnItem<D,S,P> station)
getPlaceholders
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected void setPlaceholders(GridPlaceholderList.ColumnItem<D,S,P> station, bibliothek.gui.dock.station.support.PlaceholderMap map)
setPlaceholders
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected GridPlaceholderList.ColumnItem<D,S,P>[] getChildren(GridPlaceholderList.ColumnItem<D,S,P> station)
getChildren
in class bibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.ColumnItem<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>,GridPlaceholderList.Column<D,S,P extends bibliothek.gui.dock.station.support.PlaceholderListItem<D>>>
protected abstract S itemToStation(D dockable)
dockable
to a station.dockable
- the item to convertnull
protected abstract D[] getItemChildren(S station)
station
station
- the station whose children are searchedprotected abstract bibliothek.util.Path getItemPlaceholder(D dockable)
dockable
.dockable
- some element of this gridnull
protected abstract bibliothek.gui.dock.station.support.PlaceholderMap getItemPlaceholders(S station)
station
station
- some stationnull
protected abstract void setItemPlaceholders(S station, bibliothek.gui.dock.station.support.PlaceholderMap map)
station
station
- the station whose layout is to be updatedmap
- the new placeholders, never null