Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nextapp.echo.event
Class TableModelEvent  view TableModelEvent download TableModelEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended bynextapp.echo.event.TableModelEvent
All Implemented Interfaces:
java.io.Serializable

public class TableModelEvent
extends java.util.EventObject

An event describing a change to a TableModel.


Field Summary
static int ALL_COLUMNS
          A value for columns parameters indicating all columns were affected.
private  int column
           
static int DELETE
          An event type indicating table rows were deleted.
private  int firstRow
           
static int HEADER_ROW
          A value for rows parameters indicating the table header was affected.
static int INSERT
          An event type indicating table rows were inserted.
private  int lastRow
           
static int STRUCTURE_CHANGED
          An event type indicating the table structure was modified.
private  int type
           
static int UPDATE
          An event type indicating table rows were updated.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableModelEvent(nextapp.echo.table.TableModel source)
          Creates a TableModelEvent indicating a change to any or all cells of table.
TableModelEvent(nextapp.echo.table.TableModel source, int row)
          Creates a TableModelEvent indicating a change to any or all columns of a table row.
TableModelEvent(nextapp.echo.table.TableModel source, int firstRow, int lastRow)
          Creates a TableModelEvent indicating a change to any or all columns of an interval of table rows.
TableModelEvent(nextapp.echo.table.TableModel source, int column, int firstRow, int lastRow)
          Creates a TableModelEvent indicating a change to a particular column of a single or an interval of table rows.
TableModelEvent(nextapp.echo.table.TableModel source, int column, int firstRow, int lastRow, int type)
          Creates a TableModelEvent indicating a particular type of change to a particular column of a single or an interval of table rows.
 
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

ALL_COLUMNS

public static final int ALL_COLUMNS
A value for columns parameters indicating all columns were affected.

See Also:
Constant Field Values

HEADER_ROW

public static final int HEADER_ROW
A value for rows parameters indicating the table header was affected.

See Also:
Constant Field Values

DELETE

public static final int DELETE
An event type indicating table rows were deleted.

See Also:
Constant Field Values

INSERT

public static final int INSERT
An event type indicating table rows were inserted.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
An event type indicating table rows were updated.

See Also:
Constant Field Values

STRUCTURE_CHANGED

public static final int STRUCTURE_CHANGED
An event type indicating the table structure was modified.

See Also:
Constant Field Values

firstRow

private int firstRow

lastRow

private int lastRow

column

private int column

type

private int type
Constructor Detail

TableModelEvent

public TableModelEvent(nextapp.echo.table.TableModel source)
Creates a TableModelEvent indicating a change to any or all cells of table.


TableModelEvent

public TableModelEvent(nextapp.echo.table.TableModel source,
                       int row)
Creates a TableModelEvent indicating a change to any or all columns of a table row.


TableModelEvent

public TableModelEvent(nextapp.echo.table.TableModel source,
                       int firstRow,
                       int lastRow)
Creates a TableModelEvent indicating a change to any or all columns of an interval of table rows.


TableModelEvent

public TableModelEvent(nextapp.echo.table.TableModel source,
                       int column,
                       int firstRow,
                       int lastRow)
Creates a TableModelEvent indicating a change to a particular column of a single or an interval of table rows.


TableModelEvent

public TableModelEvent(nextapp.echo.table.TableModel source,
                       int column,
                       int firstRow,
                       int lastRow,
                       int type)
Creates a TableModelEvent indicating a particular type of change to a particular column of a single or an interval of table rows.

Method Detail

getColumn

public int getColumn()
Returns the column that was affected by the update.


getFirstRow

public int getFirstRow()
Returns the first row that was affected by the update.


getLastRow

public int getLastRow()
Returns the last row that was affected by the update.


getType

public int getType()
Returns the type of update that occurred.