|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.citra.event.ReorderEvent
public class ReorderEvent
An event used to identify how the rows of a table have been reordered.
ReorderEvent contains an integer array - rowMap - which can be used to find out the new location of a specific row according to the following:
If a row was at index i before the reordering, then the element of the ith index corresponds to the new position of the row. A negative value implies that the row is now not visible (e.g. as a result of filtering).
TableReorder
,
Serialized FormField Summary | |
---|---|
protected boolean |
restoreExpandedNodes
flag indicating that previously stored nodes should be expanded |
protected int[] |
rowMap
The row transposition mapping. |
protected boolean |
storeCellSelections
flag to indicate whether the reorder listener will store the cell selections |
protected boolean |
storeCheckBoxSelections
flag to indicate whether the reorder listener will store the selected nodes of the checkbox tree |
protected boolean |
storeExpandedNodes
flag to indicate whether the reorder listener will store the expanded tree nodes |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ReorderEvent(Object source,
int[] rowMap)
Constructs a ReorderEvent object. |
|
ReorderEvent(Object source,
int[] rowMap,
boolean storeCellSelections)
Constructs a ReorderEvent object. |
|
ReorderEvent(Object source,
int[] rowMap,
boolean storeCellSelections,
boolean storeExpandedNodes)
Constructs a ReorderEvent object. |
|
ReorderEvent(Object source,
int[] rowMap,
boolean storeCellSelections,
boolean storeExpandedNodes,
boolean storeCheckBoxSelections)
Constructs a ReorderEvent object. |
|
ReorderEvent(Object source,
int[] rowMap,
boolean storeCellSelections,
boolean storeExpandedNodes,
boolean storeCheckBoxSelections,
boolean restoreExpandedNodes)
Constructs a ReorderEvent object. |
Method Summary | |
---|---|
boolean |
getRestoreExpandedNodes()
Returns a flag that indicates whether previously stored nodes should be expanded. |
int[] |
getRowMap()
Returns an integer array that can be used to find out the new location of a specific row. |
boolean |
getStoreCellSelections()
Returns a flag that indicates whether the reorder listener will store the cell selections. |
boolean |
getStoreCheckBoxSelections()
Returns a flag that indicates whether the reorder listener will store the selected nodes of the checkbox tree. |
boolean |
getStoreExpandedNodes()
Returns a flag that indicates whether the reorder listener will store the expanded tree nodes. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int[] rowMap
protected boolean storeCellSelections
protected boolean storeExpandedNodes
protected boolean storeCheckBoxSelections
protected boolean restoreExpandedNodes
Constructor Detail |
---|
public ReorderEvent(Object source, int[] rowMap)
source
- the Object generating the eventrowMap
- the row transposition mappingpublic ReorderEvent(Object source, int[] rowMap, boolean storeCellSelections)
source
- the Object generating the eventrowMap
- the row transposition mappingstoreCellSelections
- flag to indicate whether table's cell selection will be storedpublic ReorderEvent(Object source, int[] rowMap, boolean storeCellSelections, boolean storeExpandedNodes)
source
- the Object generating the eventrowMap
- the row transposition mappingstoreCellSelections
- flag to indicate whether table's cell selection will be storedstoreExpandedNodes
- flag to indicate whether the expanded nodes of the treetable will be storedpublic ReorderEvent(Object source, int[] rowMap, boolean storeCellSelections, boolean storeExpandedNodes, boolean storeCheckBoxSelections)
source
- the Object generating the eventrowMap
- the row transposition mappingstoreCellSelections
- flag to indicate whether table's cell selection will be storedstoreExpandedNodes
- flag to indicate whether the expanded nodes of the treetable will be storedstoreCheckBoxSelections
- flag to indicate whether the selected nodes of the checkbox tree will be storedpublic ReorderEvent(Object source, int[] rowMap, boolean storeCellSelections, boolean storeExpandedNodes, boolean storeCheckBoxSelections, boolean restoreExpandedNodes)
source
- the Object generating the eventrowMap
- the row transposition mappingstoreCellSelections
- flag to indicate whether table's cell selection will be storedstoreExpandedNodes
- flag to indicate whether the expanded nodes of the treetable will be storedstoreCheckBoxSelections
- flag to indicate whether the selected nodes of the checkbox tree will be storedrestoreExpandedNodes
- flag to indicate whether previously stored nodes should be expandedMethod Detail |
---|
public boolean getRestoreExpandedNodes()
public int[] getRowMap()
public boolean getStoreCellSelections()
public boolean getStoreCheckBoxSelections()
public boolean getStoreExpandedNodes()
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |