org.rcfaces.core.model
Interface IIndexesModel

All Known Implementing Classes:
AbstractIndexesModel, CollectionIndexesModel, MapIndexesModel

public interface IIndexesModel

Version:
$Revision: 1.18 $ $Date: 2011/06/16 09:29:41 $
Author:
Olivier Oeuillot (latest modification by $Author: jbmeslin $)

Method Summary
 boolean addIndex(int index)
           
 void clearIndexes()
          Clear all selection.
 boolean containsIndex(int index)
          Returns if the index of item is selected.
 IIndexesModel copy()
           
 int countIndexes()
          Number of selected items.
 int getFirstIndex()
          Returns the first index.
 Object getFirstSelectedObject(Object cachedValue)
           
 Object[] listSelectedObjects(Object[] toArray, Object value)
           
 int[] listSortedIndexes()
          List all indexes sorted by ascendending.
 boolean removeIndex(int index)
           
 void setIndexes(int[] indexes)
          Specify the indexes of selected items.
 

Method Detail

countIndexes

int countIndexes()
Number of selected items.


listSortedIndexes

int[] listSortedIndexes()
List all indexes sorted by ascendending.


getFirstIndex

int getFirstIndex()
Returns the first index.


clearIndexes

void clearIndexes()
Clear all selection.


setIndexes

void setIndexes(int[] indexes)
Specify the indexes of selected items.


containsIndex

boolean containsIndex(int index)
Returns if the index of item is selected.


addIndex

boolean addIndex(int index)

removeIndex

boolean removeIndex(int index)

listSelectedObjects

Object[] listSelectedObjects(Object[] toArray,
                             Object value)

getFirstSelectedObject

Object getFirstSelectedObject(Object cachedValue)

copy

IIndexesModel copy()


Copyright © 2006-2011 Vedana. All Rights Reserved.