org.apache.pivot.wtk
Interface TableView.SelectedRowBindMapping

Enclosing class:
TableView

public static interface TableView.SelectedRowBindMapping

Translates between selection and bind context data during data binding.


Method Summary
 Object get(List<?> tableData, int index)
          Retrieves the value at the given index.
 int indexOf(List<?> tableData, Object value)
          Returns the index of the row in the source list.
 

Method Detail

indexOf

int indexOf(List<?> tableData,
            Object value)
Returns the index of the row in the source list.

Parameters:
tableData - The source table 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<?> tableData,
           int index)
Retrieves the value at the given index.

Parameters:
tableData - The source table data.
index - The index of the value to retrieve.