|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rcfaces.core.model.AbstractIndexesModel
org.rcfaces.core.model.CollectionIndexesModel
public class CollectionIndexesModel
| Field Summary | |
|---|---|
protected Collection |
collection
|
protected boolean |
commited
|
protected static int[] |
EMPTY_SELECTION
|
protected static int |
UNKNOWN_INDEX
|
| Constructor Summary | |
|---|---|
CollectionIndexesModel(Collection collection)
|
|
| Method Summary | |
|---|---|
boolean |
addIndex(int index)
|
void |
clearIndexes()
Clear all selection. |
void |
commit()
|
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. |
protected int |
getIndex(Object object)
|
protected Object |
getKey(int index)
|
protected int |
getUnknownIndex()
|
boolean |
isCommited()
|
int[] |
listSortedIndexes()
List all indexes sorted by ascendending. |
boolean |
removeIndex(int index)
|
void |
setIndexes(int[] indexes)
Specify the indexes of selected items. |
| Methods inherited from class org.rcfaces.core.model.AbstractIndexesModel |
|---|
getFirstSelectedObject, listSelectedObjects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int[] EMPTY_SELECTION
protected static final int UNKNOWN_INDEX
protected final Collection collection
protected boolean commited
| Constructor Detail |
|---|
public CollectionIndexesModel(Collection collection)
| Method Detail |
|---|
public int getFirstIndex()
IIndexesModel
getFirstIndex in interface IIndexesModelpublic final int[] listSortedIndexes()
IIndexesModel
listSortedIndexes in interface IIndexesModelpublic final void clearIndexes()
IIndexesModel
clearIndexes in interface IIndexesModelpublic final boolean containsIndex(int index)
IIndexesModel
containsIndex in interface IIndexesModelprotected int getIndex(Object object)
protected Object getKey(int index)
protected int getUnknownIndex()
public boolean addIndex(int index)
addIndex in interface IIndexesModelpublic final boolean removeIndex(int index)
removeIndex in interface IIndexesModelpublic void setIndexes(int[] indexes)
IIndexesModel
setIndexes in interface IIndexesModelpublic int countIndexes()
IIndexesModel
countIndexes in interface IIndexesModelpublic void commit()
commit in interface ICommitableObjectpublic boolean isCommited()
isCommited in interface ICommitableObjectpublic IIndexesModel copy()
copy in interface IIndexesModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||