|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject nextapp.echo2.app.event.TableModelEvent
public class TableModelEvent
An event describing a change to a TableModel
.
Field Summary | |
---|---|
static int |
ALL_COLUMNS
A value for column parameters indicating that all columns
of the table were affected by the change. |
static int |
DELETE
An event type indicating one or more table rows were deleted. |
static int |
HEADER_ROW
A value row-describing parameters/properties, (i.e., row ,
firstRow , and lastRow )
indicating the table header was affected. |
static int |
INSERT
An event type indicating one or more table rows were inserted. |
static int |
STRUCTURE_CHANGED
An event type indicating the table structure was modified. |
static int |
UPDATE
An event type indicating one or more table rows were updated. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TableModelEvent(TableModel source)
Creates a TableModelEvent describing a change to any or
all rows of a table. |
|
TableModelEvent(TableModel source,
int row)
Creates a TableModel Event indicating a change to any or
all columns of a single table row. |
|
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. |
|
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. |
|
TableModelEvent(TableModel source,
int column,
int firstRow,
int lastRow,
int type)
Primary constructor for creating TableModelEvent s. |
Method Summary | |
---|---|
int |
getColumn()
Returns the column that was affected by the update. |
int |
getFirstRow()
Returns the first row that was affected by the update. |
int |
getLastRow()
Returns the last row that was affected by the update. |
int |
getType()
Returns the type of update that occurred. |
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 ALL_COLUMNS
column
parameters indicating that all columns
of the table were affected by the change.
public static final int HEADER_ROW
row
,
firstRow
, and lastRow
)
indicating the table header was affected.
public static final int DELETE
public static final int INSERT
public static final int UPDATE
public static final int STRUCTURE_CHANGED
Constructor Detail |
---|
public TableModelEvent(TableModel source)
TableModelEvent
describing a change to any or
all rows of a table.
source
- the changed TableModel
public TableModelEvent(TableModel source, int row)
TableModel
Event indicating a change to any or
all columns of a single table row.
source
- the changed TableModel
row
- the index of the affected rowpublic TableModelEvent(TableModel source, int firstRow, int lastRow)
TableModel
Event indicating a change to any or
all columns of an interval of table rows.
source
- the changed TableModel
firstRow
- the first table row affected by the updatelastRow
- the last table row affected by the updatepublic TableModelEvent(TableModel source, int column, int firstRow, int lastRow)
TableModelEvent
indicating a change to a
particular column of a single table row or an interval of table rows.
source
- the changed TableModel
column
- the column that was affected by the updatefirstRow
- the first table row affected by the updatelastRow
- the last table row affected by the updatepublic TableModelEvent(TableModel source, int column, int firstRow, int lastRow, int type)
TableModelEvent
s.
All other constructors are for convenience and must invoke this
constructor.
source
- the changed TableModel
column
- the column that was affected by the update,
or ALL_COLUMNS
if all columns were affected.firstRow
- the first table row affected by the updatelastRow
- the last table row affected by the updatetype
- The type of change that occurred, one of the following
values:
Method Detail |
---|
public int getColumn()
public int getFirstRow()
public int getLastRow()
public int getType()
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |