org.zeroexchange.web.model
Class ListSortableProvider<T extends Serializable>

java.lang.Object
  extended by org.zeroexchange.web.model.ListSortableProvider<T>
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

public abstract class ListSortableProvider<T extends Serializable>
extends Object
implements org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T,String>

Adapter to the sortable provider.

Author:
black
See Also:
Serialized Form

Constructor Summary
ListSortableProvider()
           
 
Method Summary
 void detach()
           
protected abstract  List<T> getItems()
           
 org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState<String> getSortState()
           
 Iterator<? extends T> iterator(long first, long count)
           
 org.apache.wicket.model.IModel<T> model(T object)
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSortableProvider

public ListSortableProvider()
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>

detach

public void detach()
Specified by:
detach in interface org.apache.wicket.model.IDetachable

getSortState

public org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState<String> getSortState()
Specified by:
getSortState in interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator<String>

getItems

protected abstract List<T> getItems()


Copyright © 2013. All Rights Reserved.