org.apache.wicket.spring.common.web
Class ContactDataProvider
java.lang.Object
org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
org.apache.wicket.spring.common.web.ContactDataProvider
- All Implemented Interfaces:
- Serializable, ISortStateLocator, ISortableDataProvider, IClusterable, IDataProvider, IDetachable
- Direct Known Subclasses:
- ProxyDataProvider
public abstract class ContactDataProvider
- extends SortableDataProvider
Base class for contact data provider implementations. This class implements everything except
retrieval of the dao object, this way we can isolate that for our examples.
- Author:
- Igor Vaynberg (ivaynerg)
- See Also:
- Serialized Form
Method Summary |
protected abstract ContactDao |
getContactDao()
|
Iterator |
iterator(int first,
int count)
Gets an iterator for the subset of total data |
int |
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 |
Methods inherited from interface org.apache.wicket.markup.repeater.data.IDataProvider |
model |
ContactDataProvider
public ContactDataProvider()
getContactDao
protected abstract ContactDao getContactDao()
iterator
public final Iterator iterator(int first,
int count)
- Description copied from interface:
IDataProvider
- Gets an iterator for the subset of total data
- Parameters:
first
- first row of datacount
- minimum number of elements to retrieve
- Returns:
- iterator capable of iterating over {first, first+count} items
size
public final int size()
- Description copied from interface:
IDataProvider
- Gets total number of items in the collection represented by the DataProvider
- Returns:
- total item count
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.