|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
D
- the kind of item representing a Dockable
P
- the kind of item this converter supportspublic interface PlaceholderListItemConverter<D,P extends PlaceholderListItem<D>>
Used by a PlaceholderList
to read and write to a PlaceholderMap
.
Implementations can assume that the list will both convert
methods call with
items in the order of which the items are found in the list (meaning ordered by their location).
Method Summary | |
---|---|
void |
added(P dockable)
Called as soon as the result of 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. |
Method Detail |
---|
ConvertedPlaceholderListItem convert(int index, P dockable)
null
dockable, this method converts the element into
some data that can be stored persistently.
index
- the index of dockable
in the dockables-list
dockable
- the element to store
null
to indicate that this element
should not be storedP convert(ConvertedPlaceholderListItem item)
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 convert(int,PlaceholderListItem)
.
item
- the item to read
null
void added(P dockable)
convert(ConvertedPlaceholderListItem)
has been added to the list.
dockable
- the added element, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |