Interface FeaturePagingHelper
- All Superinterfaces:
org.gvsig.tools.dispose.Disposable,org.gvsig.tools.dynobject.DynObjectPagingHelper,org.gvsig.tools.util.GetItem64<Feature>,org.gvsig.tools.util.GetItemWithSize64<Feature>,org.gvsig.tools.util.GetItemWithSizeAndIterator64<Feature>,org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64<Feature>,org.gvsig.tools.util.IsEmpty,Iterable<Feature>,org.gvsig.tools.paging.PagingCalculator,org.gvsig.tools.util.Size64
public interface FeaturePagingHelper
extends org.gvsig.tools.dynobject.DynObjectPagingHelper, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64<Feature>
Helper interface to access the values of a FeatureCollection by position.
- Author:
- gvSIG team
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gvsig.tools.paging.PagingCalculator
org.gvsig.tools.paging.PagingCalculator.Sizeable -
Field Summary
Fields inherited from interface org.gvsig.tools.util.GetItemWithSizeAndIterator64
EMPTY_GETITEMWITHSIZEANDITERATOR64Fields inherited from interface org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64
EMPTY_GETITEMWITHSIZEISEMPTYANDITERATOR64Fields inherited from interface org.gvsig.tools.paging.PagingCalculator
DEFAULT_PAGE_SIZE -
Method Summary
Modifier and TypeMethodDescriptionasList()Return a List of Fearures with the contents of this PagingHelperReturn a List of DynObjects with the contents of this PagingHelpervoidFeature[]Returns all the values of the current loaded page.getFeatureAt(long index) Returns the Feature located at the index position.Returns the query used to load the Features.Returns the FeatureStore used to fetch the data.Returns the FeatureType used of the data.voidinsert(EditableFeature feature) Inserts a new feature in thisFeatureSet.booleanisEmpty()booleanvoidsetSelection(FeatureSelection selection) voidsetSelectionUp(boolean selectionUp) Sets that the selected Features get returned first.voidupdate(EditableFeature feature) Methods inherited from interface org.gvsig.tools.dispose.Disposable
disposeMethods inherited from interface org.gvsig.tools.dynobject.DynObjectPagingHelper
getCurrentPageDynObjects, getDynObjectAt, getDynObjectSet, reload, reloadCurrentPageMethods inherited from interface org.gvsig.tools.util.GetItem64
get64Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.gvsig.tools.paging.PagingCalculator
getCurrentPage, getCurrentPageSize, getInitialIndex, getMaxPageSize, getNumPages, getTotalSize, setCurrentPage, setMaxPageSizeMethods inherited from interface org.gvsig.tools.util.Size64
size64
-
Method Details
-
getFeatureAt
Returns the Feature located at the index position.- Parameters:
index- to locate the Feature in the Collection- Returns:
- the Feature located at the index position
- Throws:
org.gvsig.tools.exception.BaseException- if there is an error getting the Feature
-
getCurrentPageFeatures
Feature[] getCurrentPageFeatures()Returns all the values of the current loaded page.- Returns:
- all the values of the current loaded page
-
getFeatureStore
FeatureStore getFeatureStore()Returns the FeatureStore used to fetch the data.- Returns:
- the FeatureStore
-
getFeatureQuery
FeatureQuery getFeatureQuery()Returns the query used to load the Features.- Returns:
- the query used to load the Features
-
getFeatureType
FeatureType getFeatureType()Returns the FeatureType used of the data.- Returns:
- the FeatureType of the data
-
update
- Parameters:
feature- an instance ofEditableFeaturewith which to update the associatedFeature.- Throws:
org.gvsig.tools.exception.BaseException
-
delete
- Parameters:
feature- theFeatureto delete.- Throws:
org.gvsig.tools.exception.BaseException
-
insert
Inserts a new feature in thisFeatureSet. It needs to be an instance ofEditableFeatureas it has not been stored yet.
AnyIteratorfrom this store that was still in use can will not reflect this change.- Parameters:
feature- theEditableFeatureto insert.- Throws:
org.gvsig.tools.exception.BaseException
-
setSelectionUp
void setSelectionUp(boolean selectionUp) Sets that the selected Features get returned first.- Parameters:
selectionUp-
-
isSelectionUp
boolean isSelectionUp() -
asList
List asList()Return a List of Fearures with the contents of this PagingHelper- Returns:
- List of Features
-
asListOfDynObjects
List asListOfDynObjects()Return a List of DynObjects with the contents of this PagingHelper- Returns:
- List of DynObjects
-
getSelection
FeatureSelection getSelection() -
setSelection
-
isEmpty
boolean isEmpty()- Specified by:
isEmptyin interfaceorg.gvsig.tools.util.IsEmpty
-
getFeatureSet
FeatureSet getFeatureSet()
-