|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.support.PlaceholderList<Dockable,DockStation,P>
bibliothek.gui.dock.station.support.DockablePlaceholderList<P>
P - the kind of object that represents a Dockablepublic class DockablePlaceholderList<P extends PlaceholderListItem<Dockable>>
A PlaceholderList that works with real Dockables.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
|---|
PlaceholderList.Filter<M>, PlaceholderList.Item, PlaceholderList.Level |
| Constructor Summary | |
|---|---|
DockablePlaceholderList()
Creates a new and empty list. |
|
DockablePlaceholderList(PlaceholderMap map)
Creates a new list reading all the data that is stored in map. |
|
DockablePlaceholderList(PlaceholderMap map,
PlaceholderListItemConverter<Dockable,P> converter)
Creates a new list reading all the data that is stored in map. |
|
| Method Summary | ||
|---|---|---|
protected Dockable[] |
getChildren(DockStation station)
Gets all the children of station. |
|
protected Path |
getPlaceholder(Dockable dockable)
Gets the placeholder which matches dockable. |
|
protected PlaceholderMap |
getPlaceholders(DockStation station)
Gets all the placeholders that are used by station. |
|
protected void |
setPlaceholders(DockStation station,
PlaceholderMap map)
Sets all the placeholders that should be used by station. |
|
static
|
simulatedRead(PlaceholderMap map,
PlaceholderListItemConverter<Dockable,P> converter)
Simulates a call to PlaceholderList.read(PlaceholderMap, PlaceholderListItemConverter) and makes all calls to converter
that would be made in a real read as well. |
|
PlaceholderMap |
toMap()
Converts this list into a PlaceholderMap, any remaining Dockable or
DockStation will be converted into its placeholder using the currently installed
PlaceholderStrategy. |
|
protected DockStation |
toStation(Dockable dockable)
Converts dockable to the representation of a DockStation. |
|
protected String |
toString(Dockable dockable)
Gets a representation of dockable as string. |
|
| Methods inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DockablePlaceholderList()
public DockablePlaceholderList(PlaceholderMap map)
map. This
constructor stores all placeholders that are described in map, obsolete
placeholders may be deleted as soon as a PlaceholderStrategy is set.
map - the map to read, not null
IllegalArgumentException - if map was not written by a PlaceholderList
public DockablePlaceholderList(PlaceholderMap map,
PlaceholderListItemConverter<Dockable,P> converter)
map. This
constructor stores all placeholders that are described in map, obsolete
placeholders may be deleted as soon as a PlaceholderStrategy is set.
map - the map to read, not nullconverter - used to convert items back to dockables, not null
IllegalArgumentException - if map was not written by a PlaceholderList| Method Detail |
|---|
public static <P extends PlaceholderListItem<Dockable>> void simulatedRead(PlaceholderMap map,
PlaceholderListItemConverter<Dockable,P> converter)
PlaceholderList.read(PlaceholderMap, PlaceholderListItemConverter) and makes all calls to converter
that would be made in a real read as well.
P - the kind of data converter handlesmap - the map to readconverter - used to convert items back to dockables, not nullpublic PlaceholderMap toMap()
PlaceholderMap, any remaining Dockable or
DockStation will be converted into its placeholder using the currently installed
PlaceholderStrategy.
nullprotected Path getPlaceholder(Dockable dockable)
PlaceholderListdockable.
getPlaceholder in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>dockable - some random dockable
dockable, can be nullprotected DockStation toStation(Dockable dockable)
PlaceholderListdockable to the representation of a DockStation.
toStation in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>dockable - some random dockable
dockable as station, can be nullprotected Dockable[] getChildren(DockStation station)
PlaceholderListstation.
getChildren in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>station - some station whose children are searched
protected PlaceholderMap getPlaceholders(DockStation station)
PlaceholderListstation.
getPlaceholders in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>station - some random representation of a DockStation
null
protected void setPlaceholders(DockStation station,
PlaceholderMap map)
PlaceholderListstation.
setPlaceholders in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>station - a representation of a DockStationmap - the map of placeholders, not nullprotected String toString(Dockable dockable)
PlaceholderListdockable as string.
toString in class PlaceholderList<Dockable,DockStation,P extends PlaceholderListItem<Dockable>>dockable - some random dockable, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||