fr.ifremer.wao.ui.data
Class AbstractMappedGridDataSource<K,E extends org.nuiton.topia.persistence.TopiaEntity>
java.lang.Object
fr.ifremer.wao.ui.data.AbstractMappedGridDataSource<K,E>
- Type Parameters:
K - Type of the map keyE - Type of the map value
- All Implemented Interfaces:
- org.apache.tapestry5.grid.GridDataSource
- Direct Known Subclasses:
- BoatDataSource, ContactDataSource
public abstract class AbstractMappedGridDataSource<K,E extends org.nuiton.topia.persistence.TopiaEntity>
- extends Object
- implements org.apache.tapestry5.grid.GridDataSource
ContactDataSource
Created: 18 janv. 2010
- Version:
- $Revision: 409 $
Mise a jour: $Date: 2010-04-01 20:21:22 +0200 (jeu., 01 avril 2010) $
par : $Author$
- Author:
- fdesbois
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMappedGridDataSource
public AbstractMappedGridDataSource()
getAvailableRows
public int getAvailableRows()
- Specified by:
getAvailableRows in interface org.apache.tapestry5.grid.GridDataSource
prepare
public void prepare(int startIndex,
int endIndex,
List<org.apache.tapestry5.grid.SortConstraint> sortConstraints)
- Specified by:
prepare in interface org.apache.tapestry5.grid.GridDataSource
execute
protected abstract Map<K,E> execute(int startIndex,
int endIndex,
org.apache.tapestry5.grid.SortConstraint orderBy)
throws WaoException
- Throws:
WaoException
count
protected abstract int count()
throws WaoException
- Throws:
WaoException
getSortConstraint
protected org.apache.tapestry5.grid.SortConstraint getSortConstraint(List<org.apache.tapestry5.grid.SortConstraint> sortConstraints)
getRowValue
public Object getRowValue(int index)
- Specified by:
getRowValue in interface org.apache.tapestry5.grid.GridDataSource
getRowType
public abstract Class<?> getRowType()
- Specified by:
getRowType in interface org.apache.tapestry5.grid.GridDataSource
get
public E get(K key)
values
public List<E> values()
contains
public boolean contains(K key)
Copyright © 2009-2010 Ifremer. All Rights Reserved.