org.apache.droids.wicket.component
Class CollectionDataProvider<T>
java.lang.Object
org.apache.droids.wicket.component.CollectionDataProvider<T>
- All Implemented Interfaces:
- java.io.Serializable, org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator, org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T>, org.apache.wicket.IClusterable, org.apache.wicket.markup.repeater.data.IDataProvider<T>, org.apache.wicket.model.IDetachable
- Direct Known Subclasses:
- WorkBeanDataProvider
public class CollectionDataProvider<T>
- extends java.lang.Object
- implements org.apache.wicket.extensions.markup.html.repeater.data.table.ISortableDataProvider<T>
- See Also:
- Serialized Form
Method Summary |
void |
detach()
|
protected java.lang.String |
getDefaultSortProperty()
|
org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState |
getSortState()
|
protected java.util.List<T> |
getValues()
|
java.util.Iterator<? extends T> |
iterator(int first,
int count)
|
org.apache.wicket.model.IModel<T> |
model(T object)
|
void |
setSortState(org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState state)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionDataProvider
public CollectionDataProvider(java.util.Collection<T> values)
getValues
protected java.util.List<T> getValues()
- Returns:
- a thread safe copy of the values as a List
model
public org.apache.wicket.model.IModel<T> model(T object)
- Specified by:
model
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
getDefaultSortProperty
protected java.lang.String getDefaultSortProperty()
detach
public void detach()
- Specified by:
detach
in interface org.apache.wicket.model.IDetachable
iterator
public java.util.Iterator<? extends T> iterator(int first,
int count)
- Specified by:
iterator
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
size
public int size()
- Specified by:
size
in interface org.apache.wicket.markup.repeater.data.IDataProvider<T>
getSortState
public org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState getSortState()
- Specified by:
getSortState
in interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
setSortState
public void setSortState(org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortState state)
- Specified by:
setSortState
in interface org.apache.wicket.extensions.markup.html.repeater.data.sort.ISortStateLocator
Copyright © 2007-2009. All Rights Reserved.