|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the data type of each rowpublic interface ListView<T>
A list view.
Note: This class is new and its interface subject to change.
| Nested Class Summary | |
|---|---|
static interface |
ListView.Delegate<T>
A list view delegate, implemented by classes that supply data to a view. |
| Method Summary | |
|---|---|
Range |
getRange()
Get the range that this view is displaying. |
boolean |
isDataSizeExact()
Returns the value of the 'isExact' parameter of the most recent call to setDataSize(int, boolean). |
void |
setData(int start,
int length,
java.util.List<T> values)
Set a range of data in the view. |
void |
setDataSize(int size,
boolean isExact)
Set the total data size of the underlying data. |
void |
setDelegate(ListView.Delegate<T> delegate)
Set the ListView.Delegate that responds to changes in the range. |
void |
setSelectionModel(SelectionModel<? super T> selectionModel)
Set the SelectionModel used by this ListView. |
| Method Detail |
|---|
boolean isDataSizeExact()
setDataSize(int, boolean).
Range getRange()
void setData(int start,
int length,
java.util.List<T> values)
start - the start index of the datalength - the length of the datavalues - the values within the range
void setDataSize(int size,
boolean isExact)
size - the total data sizeisExact - true if the size is exact, false if it is an estimatevoid setDelegate(ListView.Delegate<T> delegate)
ListView.Delegate that responds to changes in the range.
delegate - the ListView.Delegatevoid setSelectionModel(SelectionModel<? super T> selectionModel)
SelectionModel used by this ListView.
selectionModel - the SelectionModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||