Package com.inmethod.grid
Class AppendableDataProviderAdapter<T,S>
java.lang.Object
com.inmethod.grid.DataProviderAdapter<T,S>
com.inmethod.grid.AppendableDataProviderAdapter<T,S>
- All Implemented Interfaces:
IAppendableDataSource<T>,IDataSource<T>,Serializable,IDetachable,IClusterable
public class AppendableDataProviderAdapter<T,S>
extends DataProviderAdapter<T,S>
implements IAppendableDataSource<T>
extends the functionality of
DataProviderAdapter to
make @{link IDataProvider} instances Appendable- Author:
- Tom Burton
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inmethod.grid.IDataSource
IDataSource.IQuery, IDataSource.IQueryResult<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFunction for deleting an item from the specified index of the result datavoidFunction for appending an item to the end of the result datavoidquery(IDataSource.IQuery query, IDataSource.IQueryResult<T> result) Implementation of this method should load subset of the data specified byquery.getFrom()andquery.getCount().Methods inherited from class com.inmethod.grid.DataProviderAdapter
detach, modelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inmethod.grid.IDataSource
modelMethods inherited from interface org.apache.wicket.model.IDetachable
detach
-
Constructor Details
-
AppendableDataProviderAdapter
-
-
Method Details
-
insertRow
Description copied from interface:IAppendableDataSourceFunction for appending an item to the end of the result data- Specified by:
insertRowin interfaceIAppendableDataSource<T>- Parameters:
index- the index value to insert the new Item intoitem- Item to append to the end of the result data
-
deleteRow
Description copied from interface:IAppendableDataSourceFunction for deleting an item from the specified index of the result data- Specified by:
deleteRowin interfaceIAppendableDataSource<T>- Parameters:
index- the index value to delete the Item fromitem- Item to be deleted
-
query
Description copied from class:DataProviderAdapterImplementation of this method should load subset of the data specified byquery.getFrom()andquery.getCount(). Also if the total item count can be determined, it should be passed toresult.- Specified by:
queryin interfaceIDataSource<T>- Overrides:
queryin classDataProviderAdapter<T,S> - Parameters:
query- Specified the amount and position of items to be queriedresult- Allows to set the total item count and result items
-