com.eliad.model
Class GridSelectionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.eliad.model.GridSelectionEvent

public class GridSelectionEvent
extends java.util.EventObject

Events corresponding to changes in a CellsSelectionModel

Version:
1.0 04/08/00
Author:
Patrick Mérissert-Coffinières
See Also:
Serialized Form

Field Summary
static int ANCHOR_CHANGED
           
static int SELECTION_CHANGED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GridSelectionEvent(GridSelectionModel source, int type, int firstRow, int firstColumn, int lastRow, int lastColumn, boolean isAdjusting)
          Represents a change in selection status within atleast one of the cells in the range.
 
Method Summary
 int getFirstChangedColumn()
           
 int getFirstChangedRow()
           
 int getLastChangedColumn()
           
 int getLastChangedRow()
           
 int getNewAnchorColumn()
           
 int getNewAnchorRow()
           
 int getOldAnchorColumn()
           
 int getOldAnchorRow()
           
 int getType()
           
 boolean isAdjusting()
          Returns true if this is one of multiple change events.
 
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

SELECTION_CHANGED

public static final int SELECTION_CHANGED

ANCHOR_CHANGED

public static final int ANCHOR_CHANGED
Constructor Detail

GridSelectionEvent

public GridSelectionEvent(GridSelectionModel source,
                          int type,
                          int firstRow,
                          int firstColumn,
                          int lastRow,
                          int lastColumn,
                          boolean isAdjusting)
Represents a change in selection status within atleast one of the cells in the range. A good CellsSelectionModel implementation will keep the range as small as possible.
Parameters:
range - a rectangle containing all cells whose status changed
isAdjusting - an indication that this is one of a rapid series of events
Method Detail

getType

public int getType()

getFirstChangedRow

public int getFirstChangedRow()

getFirstChangedColumn

public int getFirstChangedColumn()

getLastChangedRow

public int getLastChangedRow()

getLastChangedColumn

public int getLastChangedColumn()

getOldAnchorRow

public int getOldAnchorRow()

getOldAnchorColumn

public int getOldAnchorColumn()

getNewAnchorRow

public int getNewAnchorRow()

getNewAnchorColumn

public int getNewAnchorColumn()

isAdjusting

public boolean isAdjusting()
Returns true if this is one of multiple change events.
Returns:
true if this is one of a rapid series of events