|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.gui.dock.station.support.PlaceholderListItemAdapter<D,P>
D - the kind of object that represents a DockableP - the kind of data a subclass handlespublic abstract class PlaceholderListItemAdapter<D,P extends PlaceholderListItem<D>>
An adapter for PlaceholderListItemConverter, all methods implemented by this adapter do nothing.
| Constructor Summary | |
|---|---|
PlaceholderListItemAdapter()
|
|
| Method Summary | |
|---|---|
void |
added(P dockable)
Called as soon as the result of PlaceholderListItemConverter.convert(ConvertedPlaceholderListItem) has been added to the list. |
P |
convert(ConvertedPlaceholderListItem item)
Given some data that was written by some PlaceholderListItemConverter, this
method returns the dockable that belongs to that data. |
ConvertedPlaceholderListItem |
convert(int index,
P dockable)
Given some non- null dockable, this method converts the element into
some data that can be stored persistently. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlaceholderListItemAdapter()
| Method Detail |
|---|
public P convert(ConvertedPlaceholderListItem item)
PlaceholderListItemConverterPlaceholderListItemConverter, this
method returns the dockable that belongs to that data. It is the clients responsibility
to ensure that the same PlaceholderListItemConverter is used for reading
and writing.placeholder property of item
will always be null, the map property may
not be the same as was associated when calling PlaceholderListItemConverter.convert(int,PlaceholderListItem).
convert in interface PlaceholderListItemConverter<D,P extends PlaceholderListItem<D>>item - the item to read
null
public ConvertedPlaceholderListItem convert(int index,
P dockable)
PlaceholderListItemConverternull dockable, this method converts the element into
some data that can be stored persistently.
convert in interface PlaceholderListItemConverter<D,P extends PlaceholderListItem<D>>index - the index of dockable in the dockables-listdockable - the element to store
null to indicate that this element
should not be storedpublic void added(P dockable)
PlaceholderListItemConverterPlaceholderListItemConverter.convert(ConvertedPlaceholderListItem) has been added to the list.
added in interface PlaceholderListItemConverter<D,P extends PlaceholderListItem<D>>dockable - the added element, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||