Oracle JEWT 4.2.10

oracle.bali.ewt.model
Class TwoDModelEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--oracle.bali.ewt.model.TwoDModelEvent
All Implemented Interfaces:
java.io.Serializable

public class TwoDModelEvent
extends java.awt.AWTEvent

A TwoDModelEvent is sent by a two dimensional data source when columns and rows are added, removed, or invalidated.

TwoDModelEvent contains five properties: TwoDModel, columnStartIndex, columnCount, rowStartIndex, and rowCount.

TwoDModel is the two dimensional model that sent the event.

When rows are added, rowStartIndex is the zero-based index from where the rows were added and rowCount is the number of rows that were added. When rows are removed, startIndex is the zero-based index from where the rows were removed and rowCount is the number of rows that were removed. When rows are invalidated rowStartIndex is the zero-based index of the first row that is invalid and rowCount is the number of rows that are now invalid.

When columns are added, columnStartIndex is the zero-based index from where the columns were added and columnCount is the number of columns that were added. When columns are removed, startIndex is the zero-based index from where the columns were removed and columnCount is the number of columns that were removed. When columns are invalidated columnStartIndex is the zero-based index of the first column that is invalid and columnCount is the number of columns that are now invalid.

When cells are invalidated columnStartIndex is the zero-based index of the column of the first cell that is invalid and columnCount is the number of columns from the first cell that are now invalid. rowStartIndex is the zero-based index of the row of the first cell that is invalid and rowCount is the number of rows from the first cell that are now invalid.

See Also:
TwoDModel, TwoDModelListener, Serialized Form

Field Summary
static int CELLS_INVALID
          Event sent when cells have been invalidated.
static int COLUMNS_ADDED
          Event sent when columns have been added to the TwoDModel.
static int COLUMNS_INVALID
          Event sent when the data for the columns has changed.
static int COLUMNS_REMOVED
          Event sent when columns have been removed from the TwoDModel.
static int ROWS_ADDED
          Event sent when rows have been added to the TwoDModel.
static int ROWS_INVALID
          Event sent when the data for the rows has changed.
static int ROWS_REMOVED
          Event sent when rows have been removed from the TwoDModel.
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TwoDModelEvent(java.lang.Object source, int id, int start, int count)
          Constructor with indexes.
TwoDModelEvent(java.lang.Object source, int id, int startColumn, int columnCount, int startRow, int rowCount)
          Constructor with indexes.
 
Method Summary
 int getColumnCount()
          Get the number of columns affected by the event.
 int getColumnStartIndex()
          Get the index of the first column affected by the event.
 int getRowCount()
          Get the number of rows affected by the event.
 int getRowStartIndex()
          Get the index of the first row affected by the event.
 TwoDModel getTwoDModel()
          Get the two dimensional data source that sent the event.
 java.lang.String toString()
          Debugging support
 
Methods inherited from class java.awt.AWTEvent
consume, finalize, getID, isConsumed, paramString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLUMNS_ADDED

public static final int COLUMNS_ADDED
Event sent when columns have been added to the TwoDModel.

COLUMNS_REMOVED

public static final int COLUMNS_REMOVED
Event sent when columns have been removed from the TwoDModel.

COLUMNS_INVALID

public static final int COLUMNS_INVALID
Event sent when the data for the columns has changed.

ROWS_ADDED

public static final int ROWS_ADDED
Event sent when rows have been added to the TwoDModel.

ROWS_REMOVED

public static final int ROWS_REMOVED
Event sent when rows have been removed from the TwoDModel.

ROWS_INVALID

public static final int ROWS_INVALID
Event sent when the data for the rows has changed.

CELLS_INVALID

public static final int CELLS_INVALID
Event sent when cells have been invalidated.
Constructor Detail

TwoDModelEvent

public TwoDModelEvent(java.lang.Object source,
                      int id,
                      int start,
                      int count)
Constructor with indexes.

Parameters:
source - the data source object
id - the event identifier
start - the index of the row affected
count - the number of rows affected

TwoDModelEvent

public TwoDModelEvent(java.lang.Object source,
                      int id,
                      int startColumn,
                      int columnCount,
                      int startRow,
                      int rowCount)
Constructor with indexes.

Parameters:
source - the data source object
id - the event identifier
startColumn - the index of the column affected
columnCount - the number of columns affected
startRow - the index of the row affected
rowCount - the number of rows affected
Method Detail

getTwoDModel

public TwoDModel getTwoDModel()
Get the two dimensional data source that sent the event.

getRowStartIndex

public int getRowStartIndex()
Get the index of the first row affected by the event.

getRowCount

public int getRowCount()
Get the number of rows affected by the event.

getColumnStartIndex

public int getColumnStartIndex()
Get the index of the first column affected by the event.

getColumnCount

public int getColumnCount()
Get the number of columns affected by the event.

toString

public java.lang.String toString()
Debugging support
Overrides:
toString in class java.awt.AWTEvent

Oracle JEWT 4.2.10