javax.swing.event
Class TableModelEvent
- Serializable
static int | ALL_COLUMNS - A column index representing all columns.
|
static int | DELETE - An event type indicating that one or more rows have been deleted from the
model.
|
static int | HEADER_ROW - A row index representing the header row.
|
static int | INSERT - An event type indicating that one or more rows have been inserted into the
model.
|
static int | UPDATE - An event type indicating that data has been updated in the model.
|
protected int | column - The column in the table model that the event relates to.
|
protected int | firstRow - The first row in the table model that the event relates to.
|
protected int | lastRow - The last row in the table model that the event relates to.
|
protected int | type - The event type (one of
UPDATE , INSERT , DELETE ).
|
TableModelEvent(TableModel source) - Creates a new
TableModelEvent indicating an UPDATE
to the data in all columns and rows.
|
TableModelEvent(TableModel source, int row) - Creates a new
TableModelEvent indicating an UPDATE
to the data in a single row across all columns.
|
TableModelEvent(TableModel source, int firstRow, int lastRow) - Creates a new
TableModelEvent indicating an UPDATE
to the data in the specified rows across all columns.
|
TableModelEvent(TableModel source, int firstRow, int lastRow, int column) - Creates a new
TableModelEvent indicating an UPDATE
to the data in the specified rows and column.
|
TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) - Creates a new
TableModelEvent indicating an operation of
the specified type on the data in the specified rows and
column.
|
int | getColumn() - Returns the affected column of this event.
|
int | getFirstRow() - Returns the first affected row of this event.
|
int | getLastRow() - Returns the last affected row of this event.
|
int | getType() - Returns the type of change indicated by this event (usually one of
UPDATE , INSERT , DELETE ).
|
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
ALL_COLUMNS
public static final int ALL_COLUMNS
A column index representing all columns.
DELETE
public static final int DELETE
An event type indicating that one or more rows have been deleted from the
model.
HEADER_ROW
public static final int HEADER_ROW
A row index representing the header row.
INSERT
public static final int INSERT
An event type indicating that one or more rows have been inserted into the
model.
UPDATE
public static final int UPDATE
An event type indicating that data has been updated in the model.
column
protected int column
The column in the table model that the event relates to.
firstRow
protected int firstRow
The first row in the table model that the event relates to.
lastRow
protected int lastRow
The last row in the table model that the event relates to.
TableModelEvent
public TableModelEvent(TableModel source)
Creates a new
TableModelEvent
indicating an
UPDATE
to the data in all columns and rows.
source
- the source object (null
not permitted).
TableModelEvent
public TableModelEvent(TableModel source,
int row)
Creates a new
TableModelEvent
indicating an
UPDATE
to the data in a single row across all columns.
source
- the source object (null
not permitted).row
- the updated row.
TableModelEvent
public TableModelEvent(TableModel source,
int firstRow,
int lastRow)
Creates a new
TableModelEvent
indicating an
UPDATE
to the data in the specified rows across all columns.
source
- the source object (null
not permitted).firstRow
- the first row of update.lastRow
- the last row of update.
TableModelEvent
public TableModelEvent(TableModel source,
int firstRow,
int lastRow,
int column)
Creates a new
TableModelEvent
indicating an
UPDATE
to the data in the specified rows and column. Use
ALL_COLUMNS
for the
column
argument to indicate all columns.
source
- the source object (null
not permitted).firstRow
- the first row of update.lastRow
- the last row of update.column
- the affected column.
TableModelEvent
public TableModelEvent(TableModel source,
int firstRow,
int lastRow,
int column,
int type)
Creates a new
TableModelEvent
indicating an operation of
the specified
type
on the data in the specified rows and
column. The event type is usually one of
UPDATE
,
INSERT
,
and
DELETE
.
source
- the source object (null
not permitted).firstRow
- the first row of update.lastRow
- the last row of update.column
- the affected column.type
- the type of change.
getColumn
public int getColumn()
Returns the affected column of this event.
getFirstRow
public int getFirstRow()
Returns the first affected row of this event.
getLastRow
public int getLastRow()
Returns the last affected row of this event.
TableModelEvent.java --
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU Classpath; see the file COPYING. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA.
Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.
As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from
or based on this library. If you modify this library, you may extend
this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version.