|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.klg.jclass.table.JCTableDataEvent
TableDataEvent objects describe changes to a
TableDataModel object.
TableDataModel,
JCTableDataListener,
Serialized Form| Field Summary | |
static int |
ADD_COLUMN
Indicates that one or more columns have been added to the data source. |
static int |
ADD_ROW
Indicates that one or more rows have been added to the data source. |
static int |
CHANGE_COLUMN
Indicates that a column has changed one or more of its values in the data source. |
static int |
CHANGE_COLUMN_LABEL
Indicates that a column label has changed in the data source. |
static int |
CHANGE_ROW
Indicates that a row has changed one or more of its values in the data source. |
static int |
CHANGE_ROW_LABEL
Indicates that a row label has changed in the data source. |
static int |
CHANGE_VALUE
Indicates that a cell value has changed in the data source. |
protected int |
column
|
protected int |
command
|
protected int |
destination
|
static int |
MOVE_COLUMN
Indicates that one or more columns have moved in the data source. |
static int |
MOVE_ROW
Indicates that one or more rows have moved in the data source. |
protected int |
num_affected
|
static int |
NUM_COLUMNS
Indicates that the number of columns in the data source has changed. |
static int |
NUM_ROWS
Indicates that the number of rows in the data source has changed. |
static int |
REMOVE_COLUMN
Indicates that one or more column have been deleted from the data source. |
static int |
REMOVE_ROW
Indicates that one or more rows have been deleted from the data source. |
static int |
RESET
Indicates that table should reset all data values based on changes in the data source. |
protected int |
row
|
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
JCTableDataEvent(Object source,
int row,
int column,
int num_affected,
int destination,
int command)
The event posted when a change is made to the data source. |
|
| Method Summary | |
int |
getColumn()
Returns the column that was changed. |
int |
getCommand()
Returns the command that generated the event. |
int |
getDestination()
For MOVE events, indicates the destination location. |
int |
getNumAffected()
Returns the number of rows or columns affected. |
int |
getRow()
Returns the row that was changed. |
| 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 |
public static final int CHANGE_VALUE
public static final int CHANGE_ROW
public static final int ADD_ROW
public static final int REMOVE_ROW
public static final int CHANGE_COLUMN
public static final int ADD_COLUMN
public static final int REMOVE_COLUMN
public static final int CHANGE_ROW_LABEL
public static final int CHANGE_COLUMN_LABEL
public static final int MOVE_ROW
public static final int MOVE_COLUMN
public static final int NUM_ROWS
public static final int NUM_COLUMNS
public static final int RESET
protected int row
protected int column
protected int num_affected
protected int destination
protected int command
| Constructor Detail |
public JCTableDataEvent(Object source,
int row,
int column,
int num_affected,
int destination,
int command)
source - The data sourcerow - the row number associated with changed datacolumn - the column number associated with changed datanum_affected - for MOVE_ROW, MOVE_COLUMN,
REMOVE_ROW and REMOVE_COLUMN, the number or rows
or columns affecteddestination - for MOVE_ROW and MOVE_COLUMN,
the destination row/column before which the insert occurscommand - The type of change. Possible values are:
| TableDataEvent.CHANGE_VALUE | A single cell has changed |
| TableDataEvent.CHANGE_ROW | A single row has changed |
| TableDataEvent.ADD_ROW | One or more rows have been added |
| TableDataEvent.REMOVE_ROW | One or more rows have been deleted |
| TableDataEvent.CHANGE_COLUMN | A single column has changed |
| TableDataEvent.ADD_COLUMN | One or more columns have been added |
| TableDataEvent.REMOVE_COLUMN | One or more columns have been deleted |
| TableDataEvent.CHANGE_ROW_LABEL | A single row label has changed |
| TableDataEvent.CHANGE_COLUMN_LABEL | A single column label has changed |
| TableDataEvent.MOVE_ROW | One or more rows have been moved |
| TableDataEvent.MOVE_COLUMN | One or more columns have been moved |
| TableDataEvent.NUM_ROWS | The number of rows has changed |
| TableDataEvent.NUM_COLUMNS | The number of columns has changed |
| TableDataEvent.RESET | Recalculation and repaint of the table is required |
TableDataModel.addTableDataListener(com.klg.jclass.table.JCTableDataListener),
JCTableDataAdapter,
JCTableDataListener| Method Detail |
public int getRow()
public int getColumn()
public int getNumAffected()
public int getDestination()
public int getCommand()
Commands: TableDataEvent.CHANGE_VALUE TableDataEvent.CHANGE_ROW TableDataEvent.ADD_ROW TableDataEvent.REMOVE_ROW TableDataEvent.CHANGE_COLUMN TableDataEvent.ADD_COLUMN TableDataEvent.REMOVE_COLUMN TableDataEvent.CHANGE_ROW_LABEL TableDataEvent.CHANGE_COLUMN_LABEL TableDataEvent.MOVE_ROW TableDataEvent.MOVE_COLUMN TableDataEvent.NUM_ROWS TableDataEvent.NUM_COLUMNS TableDataEvent.RESET
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||