net.sf.jeppers.grid
Class GridModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.sf.jeppers.grid.GridModelEvent
All Implemented Interfaces:
Serializable

public class GridModelEvent
extends EventObject

Events corresponding to changes in a GridModel. These events may be:

Author:
Cameron Zemek
See Also:
Serialized Form

Field Summary
static int CELLS_UPDATED
          A range of cells were updated.
static int COLUMNS_DELETED
          A continuous set of columns were removed from the model.
static int COLUMNS_INSERTED
          A continuous set of columns were inserted into the model.
static int COLUMNS_UPDATED
          A continuous set of columns were updated.
static int MODEL_CHANGED
          The entire model was changed.
static int ROWS_DELETED
          A continuous set of rows were deleted from the model.
static int ROWS_INSERTED
          A continuous set of rows were inserted into the model.
static int ROWS_UPDATED
          A continuous set of rows were updated.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GridModelEvent(GridModel source, int type, int firstRow, int firstColumn, int lastRow, int lastColumn)
          Creates a new instance of GridModelEvent
 
Method Summary
 int getColumnCount()
          Return the number of columns changed
 int getFirstColumn()
          Return the index of the first column changed
 int getFirstRow()
          Return the index of the first row changed
 int getLastColumn()
          Return the index of the last column changed
 int getLastRow()
          Returns the index of the last row changed
 int getRowCount()
          Return the number of rows changed
 int getType()
          Return the event type
 
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

MODEL_CHANGED

public static final int MODEL_CHANGED
The entire model was changed.

See Also:
Constant Field Values

CELLS_UPDATED

public static final int CELLS_UPDATED
A range of cells were updated.

See Also:
Constant Field Values

ROWS_UPDATED

public static final int ROWS_UPDATED
A continuous set of rows were updated.

See Also:
Constant Field Values

ROWS_INSERTED

public static final int ROWS_INSERTED
A continuous set of rows were inserted into the model.

See Also:
Constant Field Values

ROWS_DELETED

public static final int ROWS_DELETED
A continuous set of rows were deleted from the model.

See Also:
Constant Field Values

COLUMNS_UPDATED

public static final int COLUMNS_UPDATED
A continuous set of columns were updated.

See Also:
Constant Field Values

COLUMNS_INSERTED

public static final int COLUMNS_INSERTED
A continuous set of columns were inserted into the model.

See Also:
Constant Field Values

COLUMNS_DELETED

public static final int COLUMNS_DELETED
A continuous set of columns were removed from the model.

See Also:
Constant Field Values
Constructor Detail

GridModelEvent

public GridModelEvent(GridModel source,
                      int type,
                      int firstRow,
                      int firstColumn,
                      int lastRow,
                      int lastColumn)
Creates a new instance of GridModelEvent

Method Detail

getRowCount

public int getRowCount()
Return the number of rows changed


getColumnCount

public int getColumnCount()
Return the number of columns changed


getFirstRow

public int getFirstRow()
Return the index of the first row changed


getLastRow

public int getLastRow()
Returns the index of the last row changed


getFirstColumn

public int getFirstColumn()
Return the index of the first column changed


getLastColumn

public int getLastColumn()
Return the index of the last column changed


getType

public int getType()
Return the event type