org.zeroexchange.web.model
Class AbstractDataSetProvider<T extends Serializable,F extends Serializable>
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
org.zeroexchange.web.model.AbstractDataSetProvider<T,F>
- All Implemented Interfaces:
- Serializable, org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T,String>, org.apache.wicket.markup.repeater.data.IDataProvider<T>, org.apache.wicket.model.IDetachable, org.apache.wicket.util.io.IClusterable, FilteringSortableDataProvider<T,F>
public abstract class AbstractDataSetProvider<T extends Serializable,F extends Serializable>
- extends org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
- implements FilteringSortableDataProvider<T,F>
The DataSet data provider adapter.
NOTE: DO NOT hold non-serializable data sets inside of subclasses.
- Author:
- black
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider |
detach, getSort, getSortState, setSort, setSort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wicket.model.IDetachable |
detach |
Methods inherited from interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator |
getSortState |
AbstractDataSetProvider
public AbstractDataSetProvider()
iterator
public Iterator<? extends T> iterator(long first,
long count)
- Specified by:
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T extends Serializable>
size
public long size()
- Specified by:
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T extends Serializable>
model
public org.apache.wicket.model.IModel<T> model(T object)
- Specified by:
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T extends Serializable>
getFilter
public F getFilter()
- Specified by:
getFilter
in interface FilteringSortableDataProvider<T extends Serializable,F extends Serializable>
setFilter
public void setFilter(F filter)
- Specified by:
setFilter
in interface FilteringSortableDataProvider<T extends Serializable,F extends Serializable>
getDataSet
protected abstract SlicingDataSet<T> getDataSet(F filter)
- Returns data set to operate.
Copyright © 2013. All Rights Reserved.