public class AppendableDataProviderAdapter<T,S> extends DataProviderAdapter<T,S> implements IAppendableDataSource<T>
DataProviderAdapter to
make @{link IDataProvider} instances AppendableIDataSource.IQuery, IDataSource.IQueryResult<T>| Constructor and Description |
|---|
AppendableDataProviderAdapter(org.apache.wicket.markup.repeater.data.IDataProvider<T> dataProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRow(long index,
T item)
Function for deleting an item from the specified index of the result data
|
void |
insertRow(long index,
T item)
Function for appending an item to the end of the result data
|
void |
query(IDataSource.IQuery query,
IDataSource.IQueryResult<T> result)
Implementation of this method should load subset of the data specified by
query.getFrom() and query.getCount(). |
detach, modelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmodelpublic AppendableDataProviderAdapter(org.apache.wicket.markup.repeater.data.IDataProvider<T> dataProvider)
public void insertRow(long index,
T item)
IAppendableDataSourceinsertRow in interface IAppendableDataSource<T>index - the index value to insert the new Item intoitem - Item to append to the end of the result datapublic void deleteRow(long index,
T item)
IAppendableDataSourcedeleteRow in interface IAppendableDataSource<T>index - the index value to delete the Item fromitem - Item to be deletedpublic void query(IDataSource.IQuery query, IDataSource.IQueryResult<T> result)
DataProviderAdapterquery.getFrom() and query.getCount(). Also if the total item count
can be determined, it should be passed to result.query in interface IDataSource<T>query in class DataProviderAdapter<T,S>query - Specified the amount and position of items to be queriedresult - Allows to set the total item count and result itemsCopyright © 2015. All rights reserved.