public class SimpleDatasetVaadinAdapter extends AbstractDatasetVaadinAdapter
IndexedContainer
which must be set to the table. You can obtain the container by calling getIndexedContainer()
.
To use this with a Vaadin table, simply call table.setContainerDataSource(adapter.getIndexedContainer())
,
then call loadData(int, int)
and feed the data obtained to the container.table
Constructor and Description |
---|
SimpleDatasetVaadinAdapter(UITableBase table) |
Modifier and Type | Method and Description |
---|---|
int |
countData()
Should return the total data count.
|
com.vaadin.data.util.IndexedContainer |
getIndexedContainer()
Returns the indexed container which provides correct list of sortable columns.
|
List<Object> |
loadData(int startIndex,
int count)
Should return data subset according to the specified parameters.
|
void |
onAddDynamicColumn(UITableColumn column) |
applySort, convertFilters, getFilterJavaClass, registerColumn, registerColumns, toSortSpec
public SimpleDatasetVaadinAdapter(UITableBase table)
public int countData()
public List<Object> loadData(int startIndex, int count)
startIndex
- starting index, must be zero or greatercount
- max number of data to load, zero or greater.public com.vaadin.data.util.IndexedContainer getIndexedContainer()
public void onAddDynamicColumn(UITableColumn column)
onAddDynamicColumn
in class AbstractDatasetVaadinAdapter
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.