com.sciapp.event
Class ReorderEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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.
 
Fields inherited from class java.util.EventObject
source
 
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.
 
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

rowMap

protected int[] rowMap
The row transposition mapping.

Constructor Detail

ReorderEvent

public ReorderEvent(Object source,
                    int[] rowMap)
Constructs a ReorderEvent object.

Parameters:
source - the Object generating the event
rowMap - the row transposition mapping
Method Detail

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