com.eliad.model
Class GridModelEvent

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

public class GridModelEvent
extends java.util.EventObject

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

Note: For an explicit moving event rather than a data change event, these three events can be combined and used.

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

Field Summary
static int CELLS_UPDATED
          The model shape was not modified, but some cells were updated
static int COLUMNS_DELETED
          A continuous set of columns was deleted from the model
static int COLUMNS_INSERTED
          A continuous set of columns was added to the model
static int COLUMNS_UPDATED
          The model shape was not modified, but some columns were updated
static int MODEL_CHANGED
          The entire model was changed
static int ROWS_DELETED
          A continuous set of rows was deleted from the model
static int ROWS_INSERTED
          A continuous set of rows was added to the model
static int ROWS_UPDATED
          The model shape was not modified, but some rows were updated
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GridModelEvent(GridModel source, int type, int firstRow, int firstColumn, int rowCount, int columnCount)
           
 
Method Summary
 int getColumnCount()
           
 int getFirstColumn()
           
 int getFirstRow()
           
 int getLastColumn()
           
 int getLastRow()
           
 int getRowCount()
           
 int getType()
          returns the type of the event, one of: MODEL_CHANGED CELLS_UPDATED ROWS_UPDATED COLUMNS_UPDATED ROWS_INSERTED ROWS_DELETED COLUMNS_INSERTED COLUMNS_DELETED
 
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

CELLS_UPDATED

public static final int CELLS_UPDATED
The model shape was not modified, but some cells were updated

ROWS_UPDATED

public static final int ROWS_UPDATED
The model shape was not modified, but some rows were updated

COLUMNS_UPDATED

public static final int COLUMNS_UPDATED
The model shape was not modified, but some columns were updated

ROWS_INSERTED

public static final int ROWS_INSERTED
A continuous set of rows was added to the model

ROWS_DELETED

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

COLUMNS_INSERTED

public static final int COLUMNS_INSERTED
A continuous set of columns was added to the model

COLUMNS_DELETED

public static final int COLUMNS_DELETED
A continuous set of columns was deleted from the model
Constructor Detail

GridModelEvent

public GridModelEvent(GridModel source,
                      int type,
                      int firstRow,
                      int firstColumn,
                      int rowCount,
                      int columnCount)
Method Detail

getType

public int getType()
returns the type of the event, one of:

getFirstRow

public int getFirstRow()

getFirstColumn

public int getFirstColumn()

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getLastRow

public int getLastRow()

getLastColumn

public int getLastColumn()