org.gvsig.tools.dynobject
Interface DynObjectPagingHelper

All Superinterfaces:
PagingCalculator
All Known Implementing Classes:
DefaultDynObjectPagingHelper

public interface DynObjectPagingHelper
extends PagingCalculator

Helper interface to access the values of a DynObjectSet by page or position.

Author:
gvSIG team

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gvsig.tools.paging.PagingCalculator
PagingCalculator.Sizeable
 
Field Summary
 
Fields inherited from interface org.gvsig.tools.paging.PagingCalculator
DEFAULT_PAGE_SIZE
 
Method Summary
 DynObject[] getCurrentPageDynObjects()
          Returns all the values of the current loaded page.
 DynObject getDynObjectAt(long index)
          Returns the DynObject located at the index position.
 DynObjectSet getDynObjectSet()
          Returns the DynObjectSet used to fetch the data.
 void reload()
          Reloads everything.
 void reloadCurrentPage()
          Reloads the current page of data from the set.
 
Methods inherited from interface org.gvsig.tools.paging.PagingCalculator
getCurrentPage, getCurrentPageSize, getInitialIndex, getMaxPageSize, getNumPages, getTotalSize, setCurrentPage, setMaxPageSize
 

Method Detail

getDynObjectAt

DynObject getDynObjectAt(long index)
                         throws BaseException
Returns the DynObject located at the index position.

Parameters:
index - to locate the DynObject in the set
Returns:
the DynObject located at the index position
Throws:
BaseException - if there is an error getting the DynObject

getCurrentPageDynObjects

DynObject[] getCurrentPageDynObjects()
Returns all the values of the current loaded page.

Returns:
all the values of the current loaded page

getDynObjectSet

DynObjectSet getDynObjectSet()
Returns the DynObjectSet used to fetch the data.

Returns:
the DynObjectSet

reloadCurrentPage

void reloadCurrentPage()
                       throws BaseException
Reloads the current page of data from the set.

Throws:
BaseException - if there is an error reloading the current page

reload

void reload()
            throws BaseException
Reloads everything.

Throws:
BaseException


Copyright © 2004-2011 gvSIG. All Rights Reserved.