|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.markup.repeater.data.EmptyDataProvider<T>
T
- public class EmptyDataProvider<T>
A convenience class to represent an empty data provider.
Constructor Summary | |
---|---|
EmptyDataProvider()
|
Method Summary | ||
---|---|---|
void |
detach()
Detaches model after use. |
|
static
|
getInstance()
|
|
Iterator<T> |
iterator(long first,
long count)
Gets an iterator for the subset of total data |
|
IModel<T> |
model(Object object)
Callback used by the consumer of this data provider to wrap objects retrieved from IDataProvider.iterator(long, long) with a model (usually a detachable one). |
|
long |
size()
Gets total number of items in the collection represented by the DataProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyDataProvider()
Method Detail |
---|
public static <T> EmptyDataProvider<T> getInstance()
T
-
public Iterator<T> iterator(long first, long count)
IDataProvider
iterator
in interface IDataProvider<T>
first
- first row of datacount
- minimum number of elements to retrieve
IDataProvider.iterator(long, long)
public long size()
IDataProvider
size
in interface IDataProvider<T>
IDataProvider.size()
public IModel<T> model(Object object)
IDataProvider
IDataProvider.iterator(long, long)
with a model (usually a detachable one).
model
in interface IDataProvider<T>
object
- the object that needs to be wrapped
IDataProvider.model(Object)
public void detach()
IDetachable
detach
in interface IDetachable
IDetachable.detach()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |