com.sciapp.event
Class ReorderEvent
java.lang.Object
java.util.EventObject
com.sciapp.event.ReorderEvent
- All Implemented Interfaces:
- Serializable
public class ReorderEvent
- extends EventObject
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).
- See Also:
TableReorder
Field Summary |
protected int[] |
rowMap
The row transposition mapping. |
Constructor Summary |
ReorderEvent(Object source,
int[] rowMap)
Constructs a ReorderEvent object. |
Method Summary |
int[] |
getRowMap()
Returns an integer array that can be used to find out the new location of a specific row. |
rowMap
protected int[] rowMap
- The row transposition mapping.
ReorderEvent
public ReorderEvent(Object source,
int[] rowMap)
- Constructs a ReorderEvent object.
- Parameters:
source
- the Object generating the eventrowMap
- the row transposition mapping
getRowMap
public int[] getRowMap()
- Returns an integer array that can be used to find out the new location of a specific row.
- Returns:
- the row transposition mapping