|
||||||||||
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<D>
D
- the kind of data a subclass handlespublic abstract class PlaceholderListItemAdapter<D extends PlaceholderListItem>
An adapter for PlaceholderListItemConverter
, all methods implemented by this adapter do nothing.
Constructor Summary | |
---|---|
PlaceholderListItemAdapter()
|
Method Summary | |
---|---|
void |
added(D dockable)
Called as soon as the result of PlaceholderListItemConverter.convert(ConvertedPlaceholderListItem) has been added to the list. |
D |
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,
D 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 D convert(ConvertedPlaceholderListItem item)
PlaceholderListItemConverter
PlaceholderListItemConverter
, 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 extends PlaceholderListItem>
item
- the item to read
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<D extends PlaceholderListItem>
index
- the index of dockable
in the dockables-list
dockable
- the element to store
null
to indicate that this element
should not be storedpublic void added(D dockable)
PlaceholderListItemConverter
PlaceholderListItemConverter.convert(ConvertedPlaceholderListItem)
has been added to the list.
added
in interface PlaceholderListItemConverter<D extends PlaceholderListItem>
dockable
- the added element, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |