|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.support.PlaceholderList<PerspectiveDockable,PerspectiveStation,P> bibliothek.gui.dock.station.support.PerspectivePlaceholderList<P>
P
- The kind of object that represents a PerspectiveDockable
public class PerspectivePlaceholderList<P extends PlaceholderListItem<PerspectiveDockable>>
A PlaceholderList
that works only with PerspectiveElement
s.
The PlaceholderStrategy
of this list is automatically set during construction
and there is no need for clients to call PlaceholderList.bind()
or PlaceholderList.unbind()
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
---|
PlaceholderList.Filter<M>, PlaceholderList.Item, PlaceholderList.Level |
Constructor Summary | |
---|---|
PerspectivePlaceholderList()
Creates a new and empty list. |
|
PerspectivePlaceholderList(PlaceholderMap map)
Creates a new list using map to fill in the initial content. |
|
PerspectivePlaceholderList(PlaceholderMap map,
PlaceholderListItemConverter<PerspectiveDockable,P> converter)
Creates a new list reading all the data that is stored in map . |
Method Summary | ||
---|---|---|
protected PerspectiveDockable[] |
getChildren(PerspectiveStation station)
Gets all the children of station . |
|
protected Path |
getPlaceholder(PerspectiveDockable dockable)
Gets the placeholder which matches dockable . |
|
protected PlaceholderMap |
getPlaceholders(PerspectiveStation station)
Gets all the placeholders that are used by station . |
|
protected void |
setPlaceholders(PerspectiveStation station,
PlaceholderMap map)
Sets all the placeholders that should be used by station . |
|
static
|
simulatedRead(PlaceholderMap map,
PlaceholderListItemConverter<PerspectiveDockable,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 PerspectiveStation |
toStation(PerspectiveDockable dockable)
Converts dockable to the representation of a DockStation . |
|
protected String |
toString(PerspectiveDockable dockable)
Gets a representation of dockable as string. |
Methods inherited from class bibliothek.gui.dock.station.support.PlaceholderList |
---|
baseToLevel, bind, clear, dockables, getDockableAt, getDockableIndex, 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 PerspectivePlaceholderList()
public PerspectivePlaceholderList(PlaceholderMap map)
map
to fill in the initial content.
map
- the map to readpublic PerspectivePlaceholderList(PlaceholderMap map, PlaceholderListItemConverter<PerspectiveDockable,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 null
converter
- 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<PerspectiveDockable>> void simulatedRead(PlaceholderMap map, PlaceholderListItemConverter<PerspectiveDockable,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 null
public PlaceholderMap toMap()
PlaceholderMap
, any remaining Dockable
or
DockStation
will be converted into its placeholder using the currently installed
PlaceholderStrategy
.
null
protected Path getPlaceholder(PerspectiveDockable dockable)
PlaceholderList
dockable
.
getPlaceholder
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
dockable
- some random dockable
dockable
, can be null
protected PlaceholderMap getPlaceholders(PerspectiveStation station)
PlaceholderList
station
.
getPlaceholders
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
station
- some random representation of a DockStation
null
protected void setPlaceholders(PerspectiveStation station, PlaceholderMap map)
PlaceholderList
station
.
setPlaceholders
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
station
- a representation of a DockStation
map
- the map of placeholders, not null
protected PerspectiveStation toStation(PerspectiveDockable dockable)
PlaceholderList
dockable
to the representation of a DockStation
.
toStation
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
dockable
- some random dockable
dockable
as station, can be null
protected PerspectiveDockable[] getChildren(PerspectiveStation station)
PlaceholderList
station
.
getChildren
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
station
- some station whose children are searched
protected String toString(PerspectiveDockable dockable)
PlaceholderList
dockable
as string.
toString
in class PlaceholderList<PerspectiveDockable,PerspectiveStation,P extends PlaceholderListItem<PerspectiveDockable>>
dockable
- some random dockable, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |