All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.event.TableModelEvent
java.lang.Object
|
+----java.util.EventObject
|
+----java.awt.swing.event.TableModelEvent
- public class TableModelEvent
- extends EventObject
TableModelEvent is used to notify listeners that a table model
has changed. Depending on the parameters passed in, this
can be used to specify the follow types of changes:
- Single row - TableModelEvent(source, 1); // columnIdentifier=null
- Multiple row - TableModelEvent(source, 3, 6); // rows 3 to 6 inclusive
- Single column - TableModelEvent(source, identifier); // start & end = -1
- Single cell - TableModelEvent(source, identifier, 6);
- Whole table - TableModelEvent(source, -1);
- See Also:
- TableModel
columnIdentifier-
endIndex-
startIndex-
TableModelEvent(TableModel, int)
-
TableModelEvent(TableModel, int, int)
-
TableModelEvent(TableModel, Object)
-
TableModelEvent(TableModel, Object, int)
-
TableModelEvent(TableModel, Object, int, int)
-
getColumnIdentifier()
- Returns the columnIdentifier for the event.
getEndIndex()
- Returns the last of row changed.
getStartIndex()
- Returns the first row index that changed.
columnIdentifier
protected Object columnIdentifier
startIndex
protected int startIndex
endIndex
protected int endIndex
TableModelEvent
public TableModelEvent(TableModel source,
int rowIndex)
TableModelEvent
public TableModelEvent(TableModel source,
int startIndex,
int endIndex)
TableModelEvent
public TableModelEvent(TableModel source,
Object columnIdentifier)
TableModelEvent
public TableModelEvent(TableModel source,
Object columnIdentifier,
int rowIndex)
TableModelEvent
public TableModelEvent(TableModel source,
Object columnIdentifier,
int startIndex,
int endIndex)
getColumnIdentifier
public Object getColumnIdentifier()
- Returns the columnIdentifier for the event. If the return
value is null it means every column in the specified
row(s) changed.
getStartIndex
public int getStartIndex()
- Returns the first row index that changed. -1 means all rows
getEndIndex
public int getEndIndex()
- Returns the last of row changed. -1 means all rows
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature