|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.station.support.PlaceholderList<GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.ColumnItem<D,S,P>,GridPlaceholderList.Column<D,S,P>>
bibliothek.gui.dock.station.toolbar.layout.GridPlaceholderList<D,S,P>
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>>
This PlaceholderList
stores GridPlaceholderList.Column
s as items, where one
GridPlaceholderList.Column
is just another PlaceholderList
.
Nested Class Summary | |
---|---|
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 . |
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
---|
bibliothek.gui.dock.station.support.PlaceholderList.Filter<M>, bibliothek.gui.dock.station.support.PlaceholderList.Item, bibliothek.gui.dock.station.support.PlaceholderList.Level |
Constructor Summary | |
---|---|
GridPlaceholderList()
|
Method Summary | |
---|---|
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 interal 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)
|
Methods inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
---|
baseToLevel, bind, clear, dockables, getDockableAt, getDockableIndex, getItem, getItem, getListIndex, getMap, getMetaMap, getStrategy, hasPlaceholder, insertAllPlaceholders, levelToBase, list, listPlaceholders, purePlaceholders, put, put, read, read, remove, remove, removeAll, removeAll, setStrategy, size, toMap, toString, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridPlaceholderList()
Method Detail |
---|
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 interal 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 convert
null
protected abstract D[] getItemChildren(S station)
station
station
- the station whose children are searched
protected abstract bibliothek.util.Path getItemPlaceholder(D dockable)
dockable
.
dockable
- some element of this grid
null
protected abstract bibliothek.gui.dock.station.support.PlaceholderMap getItemPlaceholders(S station)
station
station
- some station
null
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |