org.apache.pivot.wtk
Interface ListView.ItemBindMapping

Enclosing class:
ListView

public static interface ListView.ItemBindMapping

Translates between item position and bind context data during data binding.


Method Summary
 Object get(List<?> listData, int index)
          Retrieves the value at the given index during a Component.store(Object) operation.
 int indexOf(List<?> listData, Object value)
          Returns the index of the item in the source list during a Component.load(Object) operation.
 

Method Detail

indexOf

int indexOf(List<?> listData,
            Object value)
Returns the index of the item in the source list during a Component.load(Object) operation.

Parameters:
listData - The source list data.
value - The value to locate.
Returns:
The index of first occurrence of the value if it exists in the list; -1, otherwise.

get

Object get(List<?> listData,
           int index)
Retrieves the value at the given index during a Component.store(Object) operation.

Parameters:
listData - The source list data.
index - The index of the value to retrieve.