|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.ui.component.table.TableModelChangeEvent
public class TableModelChangeEvent
TableModelChangeEvent is a concrete class that describes the change event details sent to the recipient of a notification.
| Field Summary | ||
|---|---|---|
static int |
COLUMN_INSERTED
An event type that signifies that a column has been inserted into the model. |
|
static int |
COLUMN_REMOVED
An event type that signifies that a column has been removed from the model. |
|
static int |
COLUMN_UPDATED
An event type that signifies that a column has been changed in the model. |
|
static int |
ELEMENT_UPDATED
An event type that signifies that an element has been changed in the model. |
|
static int |
ROW_INSERTED
An event type that signifies that a row has been inserted into the model. |
|
static int |
ROW_REMOVED
An event type that signifies that a row has been removed from the model. |
|
static int |
ROW_UPDATED
An event type that signifies that a row has been changed in the model. |
|
| Fields inherited from interface net.rim.device.api.ui.component.table.DataModelChangeEvent |
|---|
MODEL_RESET |
| Constructor Summary | ||
|---|---|---|
TableModelChangeEvent(int eventType,
DataModel model,
int rowIndex,
int columnIndex)
Create a TableModelChangeEvent to send to listeners as a notification of a model event occurring. |
||
TableModelChangeEvent(int eventType,
DataModel model,
int rowIndex,
int columnIndex,
int elementCount)
Create a TableModelChangeEvent to send to listeners as a notification of a model event occurring. |
||
| Method Summary | ||
|---|---|---|
int |
getColumnIndex()
Get the column index that was modified. |
|
int |
getElementCount()
Get the number of elements modified in the event. |
|
int |
getEventType()
Get the event type for this event. |
|
DataModel |
getModel()
Retrieve the model that generated the event. |
|
int |
getRowIndex()
Get the row index that was modified. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ELEMENT_UPDATED
public static final int ROW_INSERTED
public static final int ROW_REMOVED
public static final int ROW_UPDATED
public static final int COLUMN_INSERTED
public static final int COLUMN_REMOVED
public static final int COLUMN_UPDATED
| Constructor Detail |
|---|
public TableModelChangeEvent(int eventType,
DataModel model,
int rowIndex,
int columnIndex)
eventType - the type of change that occurred, one of DataModelChangeEvent.MODEL_RESET,
TableModelChangeEvent.ELEMENT_UPDATED, TableModelChangeEvent.COLUMN_ADDED,
TableModelChangeEvent.COLUMN_REMOVED, TableModelChangeEvent.COLUMN_UPDATED,
TableModelChangeEvent.ROW_ADDED, TableModelChangeEvent.ROW_REMOVED or
TableModelChangeEvent.ROW_UPDATEDmodel - the model that was updatedrowIndex - the row in the given model that was modifiedcolumnIndex - the column in the given model that was modified
public TableModelChangeEvent(int eventType,
DataModel model,
int rowIndex,
int columnIndex,
int elementCount)
eventType - the type of change that occurred, one of DataModelChangeEvent.MODEL_RESET,
TableModelChangeEvent.ELEMENT_UPDATED, TableModelChangeEvent.COLUMN_ADDED,
TableModelChangeEvent.COLUMN_REMOVED, TableModelChangeEvent.COLUMN_UPDATED,
TableModelChangeEvent.ROW_ADDED, TableModelChangeEvent.ROW_REMOVED or
TableModelChangeEvent.ROW_UPDATEDmodel - the model that was updatedrowIndex - the row in the given model that was modifiedcolumnIndex - the column in the given model that was modifiedelementCount - the number of rows or columns which have been updated in a batch operation.
If elementCount < 1, the value of 1 is set.| Method Detail |
|---|
public DataModel getModel()
getModel in interface DataModelChangeEventpublic int getRowIndex()
public int getColumnIndex()
public int getEventType()
getEventType in interface DataModelChangeEventpublic int getElementCount()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal