| java.lang.Object java.util.EventObject nextapp.echo2.app.event.TableModelEvent
TableModelEvent | public class TableModelEvent extends EventObject (Code) | | An event describing a change to a TableModel .
|
Field Summary | |
final public static int | ALL_COLUMNS A value for column parameters indicating that all columns
of the table were affected by the change. | final public static int | DELETE An event type indicating one or more table rows were deleted. | final public static int | HEADER_ROW A value row-describing parameters/properties, (i.e., row ,
firstRow , and lastRow )
indicating the table header was affected. | final public static int | INSERT An event type indicating one or more table rows were inserted. | final public static int | STRUCTURE_CHANGED An event type indicating the table structure was modified. | final public static int | UPDATE An event type indicating one or more table rows were updated. |
Constructor Summary | |
public | TableModelEvent(TableModel source) Creates a TableModelEvent describing a change to any or
all rows of a table. | public | TableModelEvent(TableModel source, int row) Creates a TableModel Event indicating a change to any or
all columns of a single table row. | public | TableModelEvent(TableModel source, int firstRow, int lastRow) Creates a TableModel Event indicating a change to any or
all columns of an interval of table rows. | public | TableModelEvent(TableModel source, int column, int firstRow, int lastRow) Creates a TableModelEvent indicating a change to a
particular column of a single table row or an interval of table rows. | public | TableModelEvent(TableModel source, int column, int firstRow, int lastRow, int type) Primary constructor for creating TableModelEvent s. |
Method Summary | |
public int | getColumn() Returns the column that was affected by the update. | public int | getFirstRow() Returns the first row that was affected by the update. | public int | getLastRow() Returns the last row that was affected by the update. | public int | getType() Returns the type of update that occurred. |
ALL_COLUMNS | final public static int ALL_COLUMNS(Code) | | A value for column parameters indicating that all columns
of the table were affected by the change.
|
DELETE | final public static int DELETE(Code) | | An event type indicating one or more table rows were deleted.
|
HEADER_ROW | final public static int HEADER_ROW(Code) | | A value row-describing parameters/properties, (i.e., row ,
firstRow , and lastRow )
indicating the table header was affected.
|
INSERT | final public static int INSERT(Code) | | An event type indicating one or more table rows were inserted.
|
STRUCTURE_CHANGED | final public static int STRUCTURE_CHANGED(Code) | | An event type indicating the table structure was modified.
|
UPDATE | final public static int UPDATE(Code) | | An event type indicating one or more table rows were updated.
|
TableModelEvent | public TableModelEvent(TableModel source)(Code) | | Creates a TableModelEvent describing a change to any or
all rows of a table.
Parameters: source - the changed TableModel |
TableModelEvent | public TableModelEvent(TableModel source, int row)(Code) | | Creates a TableModel Event indicating a change to any or
all columns of a single table row.
Parameters: source - the changed TableModel Parameters: row - the index of the affected row |
TableModelEvent | public TableModelEvent(TableModel source, int firstRow, int lastRow)(Code) | | Creates a TableModel Event indicating a change to any or
all columns of an interval of table rows.
Parameters: source - the changed TableModel Parameters: firstRow - the first table row affected by the update Parameters: lastRow - the last table row affected by the update |
TableModelEvent | public TableModelEvent(TableModel source, int column, int firstRow, int lastRow)(Code) | | Creates a TableModelEvent indicating a change to a
particular column of a single table row or an interval of table rows.
Parameters: source - the changed TableModel Parameters: column - the column that was affected by the update Parameters: firstRow - the first table row affected by the update Parameters: lastRow - the last table row affected by the update |
TableModelEvent | public TableModelEvent(TableModel source, int column, int firstRow, int lastRow, int type)(Code) | | Primary constructor for creating TableModelEvent s.
All other constructors are for convenience and must invoke this
constructor.
Parameters: source - the changed TableModel Parameters: column - the column that was affected by the update, or ALL_COLUMNS if all columns were affected. Parameters: firstRow - the first table row affected by the update Parameters: lastRow - the last table row affected by the update Parameters: type - The type of change that occurred, one of the following values:- STRUCTURE_CHANGED - indicates the table's structure changed.
- DELETE - indicates one or more rows were deleted.
- INSERT - indicates one or more rows were inserted.
- UPDATE - indicates one or more rows were updated.
|
getColumn | public int getColumn()(Code) | | Returns the column that was affected by the update.
the column that was affected by the update. |
getFirstRow | public int getFirstRow()(Code) | | Returns the first row that was affected by the update.
the first row that was affected by the update |
getLastRow | public int getLastRow()(Code) | | Returns the last row that was affected by the update.
the last row that was affected by the update |
getType | public int getType()(Code) | | Returns the type of update that occurred.
the type of update that occurred, one of the following values:- STRUCTURE_CHANGED - indicates the table's structure changed.
- DELETE - indicates one or more rows were deleted.
- INSERT - indicates one or more rows were inserted.
- UPDATE - indicates one or more rows were updated.
|
|
|