Java javax.swing.event TableModelEvent fields, constructors, methods, implement or subclass

Example usage for Java javax.swing.event TableModelEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing.event TableModelEvent.

The text is from its open source code.

Field

intINSERT
Identifies the addition of new rows or columns.
intUPDATE
Identifies a change to existing data.
intDELETE
Identifies the removal of rows or columns.
intHEADER_ROW
Identifies the header row.
intALL_COLUMNS
Specifies all columns in a row or rows.

Constructor

TableModelEvent(TableModel source)
All row data in the table has changed, listeners should discard any state that was based on the rows and requery the TableModel to get the new row count and all the appropriate values.
TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type)
The cells from (firstRow, column) to (lastRow, column) have been changed.
TableModelEvent(TableModel source, int firstRow, int lastRow, int column)
The cells in column column in the range [firstRow, lastRow] have been updated.
TableModelEvent(TableModel source, int row)
This row of data has been updated.
TableModelEvent(TableModel source, int firstRow, int lastRow)
The data in rows [firstRow, lastRow] have been updated.

Method

intgetColumn()
Returns the column for the event.
intgetFirstRow()
Returns the first row that changed.
intgetLastRow()
Returns the last row that changed.
ObjectgetSource()
The object on which the Event initially occurred.
intgetType()
Returns the type of event - one of: INSERT, UPDATE and DELETE.