API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.event. TableModelEvent View Source
Author(s)
Alan Chung
Philip Milne
Since
Version
1.22 11/17/05
Serial
Hierarchy
 Object
      EventObject
          TableModelEvent
Implements
Subclasses
Description
public class TableModelEvent
  TableModelEvent is used to notify listeners that a table model has changed.
See also:    TableModel
Constructors
public 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.
public TableModelEvent (TableModel source, int row)
  This row of data has been updated.
public TableModelEvent (TableModel source, int firstRow, int lastRow)
The data in rows [firstRow, lastRow] have been updated.
public TableModelEvent (TableModel source, int firstRow, int lastRow, int column)
The cells in column column in the range [firstRow, lastRow] have been updated.
public TableModelEvent (TableModel source, int firstRow, int lastRow, int column, int type)
  The cells from (firstRow, column) to (lastRow, column) have been changed.
Methods
Hide/Show inherited methods
public int getColumn ()
  Returns the column for the event.
public int getFirstRow ()
  Returns the first row that changed.
public int getLastRow ()
Returns the last row that changed.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public int getType ()
Returns the type of event - one of: INSERT, UPDATE and DELETE.
public String toString () [Inherited From EventObject]
  Returns a String representation of this EventObject.
Fields
Hide/Show inherited fields
publicfinalstatic int ALL_COLUMNS = "-1"
Specifies all columns in a row or rows.
protected int column
publicfinalstatic int DELETE = "-1"
Identifies the removal of rows or columns.
protected int firstRow
publicfinalstatic int HEADER_ROW = "-1"
Identifies the header row.
publicfinalstatic int INSERT = "1"
Identifies the addtion of new rows or columns.
protected int lastRow
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
protected int type
publicfinalstatic int UPDATE = "0"
Identifies a change to existing data.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar