org.wicketopia.model.table
Class DefaultSortableCollectionDataProvider<T extends Serializable>

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider<T,String>
      extended by org.wicketopia.model.table.SortableCollectionDataProvider<T>
          extended by org.wicketopia.model.table.DefaultSortableCollectionDataProvider<T>
Type Parameters:
T - the item type
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 class DefaultSortableCollectionDataProvider<T extends Serializable>
extends SortableCollectionDataProvider<T>

A @{link SortableCollectionDataProvider} which supports @{link Serializable} items.

Since:
1.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.wicketopia.model.table.SortableCollectionDataProvider
NO_ORDER
 
Constructor Summary
DefaultSortableCollectionDataProvider(org.apache.wicket.model.IModel<? extends Collection<T>> inner)
           
DefaultSortableCollectionDataProvider(String propertyName, org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder sortOrder, Collection<T> items)
           
DefaultSortableCollectionDataProvider(String propertyName, org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder sortOrder, org.apache.wicket.model.IModel<? extends Collection<? extends T>> inner)
           
 
Method Summary
 org.apache.wicket.model.IModel<T> model(T object)
          Returns a @{link Model} object.
 
Methods inherited from class org.wicketopia.model.table.SortableCollectionDataProvider
detach, iterator, size
 
Methods inherited from class org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
getSort, getSortState, setSort, setSort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSortableCollectionDataProvider

public DefaultSortableCollectionDataProvider(org.apache.wicket.model.IModel<? extends Collection<T>> inner)

DefaultSortableCollectionDataProvider

public DefaultSortableCollectionDataProvider(String propertyName,
                                             org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder sortOrder,
                                             org.apache.wicket.model.IModel<? extends Collection<? extends T>> inner)

DefaultSortableCollectionDataProvider

public DefaultSortableCollectionDataProvider(String propertyName,
                                             org.apache.wicket.extensions.markup.html.repeater.data.sort.SortOrder sortOrder,
                                             Collection<T> items)
Method Detail

model

public org.apache.wicket.model.IModel<T> model(T object)
Returns a @{link Model} object.

Parameters:
object - the item
Returns:
a @{link Model} object


Copyright © 2010-2013. All Rights Reserved.