org.apache.wicket.examples.spring.common.web
Class ContactDataProvider

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
      extended by org.apache.wicket.examples.spring.common.web.ContactDataProvider
All Implemented Interfaces:
java.io.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

Constructor Summary
ContactDataProvider()
           
 
Method Summary
protected abstract  ContactDao getContactDao()
           
 java.util.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 org.apache.wicket.extensions.markup.html.repeater.util.SortableDataProvider
detach, getSort, getSortState, setSort, setSort
 
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
 

Constructor Detail

ContactDataProvider

public ContactDataProvider()
Method Detail

getContactDao

protected abstract ContactDao getContactDao()

iterator

public final java.util.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 data
count - 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 © 2006-2011 Apache Software Foundation. All Rights Reserved.