org.zeroexchange.web.model
Class AbstractDataSetProvider<T extends Serializable,F extends Serializable>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
      extended by 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

Constructor Summary
AbstractDataSetProvider()
           
 
Method Summary
protected abstract  SlicingDataSet<T> getDataSet(F filter)
          Returns data set to operate.
 F getFilter()
           
 Iterator<? extends T> iterator(long first, long count)
           
 org.apache.wicket.model.IModel<T> model(T object)
           
 void setFilter(F filter)
           
 long size()
           
 
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
 

Constructor Detail

AbstractDataSetProvider

public AbstractDataSetProvider()
Method Detail

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.