|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.adf.view.faces.model.RowKeySet
Implements a set of rowKeys. This set is connected with a CollectionModel and is actually a subset of the rowKeys contained by the CollectionModel. This set is used to group together rows that have a common UI property. For example, all the rows that are currently selected by a user might be placed in a single RowKeySet.
This class has very efficient implementations for addAll, removeAll and invertAll.
Constructor Summary | |
RowKeySet()
Creates an initially empty RowKeySet. |
|
RowKeySet(boolean addAll)
Creates a new RowKeySet. |
Method Summary | |
boolean |
add()
Adds the current rowKey to this set. |
void |
addAll()
Adds every rowKey to this set. |
protected abstract CollectionModel |
getModel()
Gets the CollectionModel associated with this set. |
java.util.Iterator |
getRowKeyIterator()
Gets an iteration of all the rowKeys contained in this set. |
int |
getSize()
Gets the number of rowKeys in this set (if known). |
boolean |
invert()
Adds the current rowKey to this set if it doesn't already exist, removes it otherwise. |
void |
invertAll()
Inverts this set. |
boolean |
isContained()
Checks to see the current rowKey is contained by this set. |
void |
readExternal(java.io.ObjectInput in)
|
boolean |
remove()
Removes the current rowKey from this set. |
void |
removeAll()
Removes every rowKey from this set. |
void |
setContained(boolean add)
Adds or removes the current rowKey. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RowKeySet()
public RowKeySet(boolean addAll)
addAll
- whether to add every rowKey to this set.Method Detail |
public boolean isContained()
public void setContained(boolean add)
add
- if true, the current rowKey is added to this set.
if false, the current rowKey is removed from this set.public boolean add()
public boolean remove()
public boolean invert()
public void invertAll()
public void addAll()
public void removeAll()
public java.util.Iterator getRowKeyIterator()
public int getSize()
protected abstract CollectionModel getModel()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |