com.jidesoft.grid
Class TableSelectionEvent
java.lang.Object
java.util.EventObject
javax.swing.event.ListSelectionEvent
com.jidesoft.grid.TableSelectionEvent
- All Implemented Interfaces:
- Serializable
public class TableSelectionEvent
- extends ListSelectionEvent
An event that characterizes a change in the current selection in a table. It extends ListSelectionEvent
and provides a field for columnIndex to indicate which column selection
changes.
The isAdjusting value in this event is always false. So it's safe to query the
TableSelectionModel to find out which cell is selected.
- See Also:
- Serialized Form
Constructor Summary |
TableSelectionEvent(Object source,
int firstRowIndex,
int lastRowIndex,
int columnIndex,
boolean isAdjusting)
|
TableSelectionEvent(Object source,
int firstRowIndex,
int lastRowIndex,
int firstColumnIndex,
int lastColumnIndex,
boolean isAdjusting)
|
TableSelectionEvent
public TableSelectionEvent(Object source,
int firstRowIndex,
int lastRowIndex,
int columnIndex,
boolean isAdjusting)
TableSelectionEvent
public TableSelectionEvent(Object source,
int firstRowIndex,
int lastRowIndex,
int firstColumnIndex,
int lastColumnIndex,
boolean isAdjusting)
getFirstRowIndex
public int getFirstRowIndex()
- Returns the index of the first row whose selection may have changed.
getFirstRowIndex() <= getLastRowIndex()
- Returns:
- the first row whose selection value may have changed, where zero is the first row
getLastRowIndex
public int getLastRowIndex()
- Returns the index of the last row whose selection may have changed.
getLastRowIndex()
>= getFirstRowIndex()
- Returns:
- the last row whose selection value may have changed, where zero is the first row
getFirstColumnIndex
public int getFirstColumnIndex()
- Returns the index of the first column whose selection may have changed.
getFirstColumnIndex() <= getLastColumnIndex()
- Returns:
- the first column whose selection value may have changed, where zero is the first
column
getLastColumnIndex
public int getLastColumnIndex()
- Returns the index of the last column whose selection may have changed.
getLastColumnIndex() >= getFirstColumnIndex()
- Returns:
- the last column whose selection value may have changed, where zero is the first
column
toString
public String toString()
- Overrides:
toString
in class ListSelectionEvent