|
Oracle JEWT API Reference Release 4.2.24.0.0 B12199-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--java.awt.AWTEvent | +--oracle.bali.ewt.model.TwoDModelEvent
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.
TwoDModel
,
TwoDModelListener
, Serialized FormField 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 |
public static final int COLUMNS_ADDED
public static final int COLUMNS_REMOVED
public static final int COLUMNS_INVALID
public static final int ROWS_ADDED
public static final int ROWS_REMOVED
public static final int ROWS_INVALID
public static final int CELLS_INVALID
Constructor Detail |
public TwoDModelEvent(java.lang.Object source, int id, int start, int count)
source
- the data source objectid
- the event identifierstart
- the index of the row affectedcount
- the number of rows affectedpublic TwoDModelEvent(java.lang.Object source, int id, int startColumn, int columnCount, int startRow, int rowCount)
source
- the data source objectid
- the event identifierstartColumn
- the index of the column affectedcolumnCount
- the number of columns affectedstartRow
- the index of the row affectedrowCount
- the number of rows affectedMethod Detail |
public TwoDModel getTwoDModel()
public int getRowStartIndex()
public int getRowCount()
public int getColumnStartIndex()
public int getColumnCount()
public java.lang.String toString()
toString
in class java.awt.AWTEvent
|
Oracle JEWT 4.2.24 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |