|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.support.PlaceholderListItemAdapter<Dockable,D> bibliothek.gui.dock.station.support.StrategyPlaceholderListItemConverter<D>
D
- the kind of item this converter is used forpublic class StrategyPlaceholderListItemConverter<D extends PlaceholderListItem<Dockable>>
This converter uses a PlaceholderStrategy
to create new placeholders, but
does not convert placeholders back to dockables.
Constructor Summary | |
---|---|
StrategyPlaceholderListItemConverter(PlaceholderStrategy strategy)
Creates a new converter |
Method Summary | |
---|---|
ConvertedPlaceholderListItem |
convert(int index,
D dockable)
Given some non- null dockable, this method converts the element into
some data that can be stored persistently. |
PlaceholderStrategy |
getStrategy()
Gets the strategy that is used for creating placeholders. |
Methods inherited from class bibliothek.gui.dock.station.support.PlaceholderListItemAdapter |
---|
added, convert |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrategyPlaceholderListItemConverter(PlaceholderStrategy strategy)
strategy
- the strategy to create placeholders, can be null
Method Detail |
---|
public PlaceholderStrategy getStrategy()
null
public ConvertedPlaceholderListItem convert(int index, D dockable)
PlaceholderListItemConverter
null
dockable, this method converts the element into
some data that can be stored persistently.
convert
in interface PlaceholderListItemConverter<Dockable,D extends PlaceholderListItem<Dockable>>
convert
in class PlaceholderListItemAdapter<Dockable,D extends PlaceholderListItem<Dockable>>
index
- the index of dockable
in the dockables-list
dockable
- the element to store
null
to indicate that this element
should not be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |