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
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.
|
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 |
SELECTION_CHANGED
public static final int SELECTION_CHANGED
ANCHOR_CHANGED
public static final int ANCHOR_CHANGED
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 changedisAdjusting
- an indication that this is one of a rapid series of events
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