com.inmethod.grid
Class AppendableDataProviderAdapter<T>
java.lang.Object
com.inmethod.grid.DataProviderAdapter<T>
com.inmethod.grid.AppendableDataProviderAdapter<T>
- All Implemented Interfaces:
- IAppendableDataSource<T>, IDataSource<T>, Serializable, IClusterable, IDetachable
public class AppendableDataProviderAdapter<T>
- extends DataProviderAdapter<T>
- implements IAppendableDataSource<T>
Created by IntelliJ IDEA.
User: Tom B.
Date: 9/20/11
Time: 11:13 AM
- Author:
- Tom B.
TODO: make generic
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppendableDataProviderAdapter
public AppendableDataProviderAdapter(IDataProvider<T> dataProvider)
InsertRow
public void InsertRow(int index,
T item)
- Description copied from interface:
IAppendableDataSource
- Function for appending an item to the end of the result data
- Specified by:
InsertRow in interface IAppendableDataSource<T>
- Parameters:
index - the index value to insert the new Item intoitem - Item to append to the end of the result data
DeleteRow
public void DeleteRow(int index,
T item)
- Specified by:
DeleteRow in interface IAppendableDataSource<T>
query
public 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(). Also if the total item count
can be determined, it should be passed to result.
- Specified by:
query in interface IDataSource<T>- Overrides:
query in class DataProviderAdapter<T>
- Parameters:
query - Specified the amount and position of items to be queriedresult - Allows to set the total item count and result items
Copyright © 2007-2012 inMethod s.r.o.. All Rights Reserved.