JIDE 3.5.15

com.jidesoft.grid
Class TableSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.ListSelectionEvent
          extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
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)
           
 
Method Summary
 int getFirstColumnIndex()
          Returns the index of the first column whose selection may have changed.
 int getFirstRowIndex()
          Returns the index of the first row whose selection may have changed.
 int getLastColumnIndex()
          Returns the index of the last column whose selection may have changed.
 int getLastRowIndex()
          Returns the index of the last row whose selection may have changed.
 String toString()
           
 
Methods inherited from class javax.swing.event.ListSelectionEvent
getFirstIndex, getLastIndex, getValueIsAdjusting
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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() &gt;= 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() &gt;= 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

JIDE 3.5.15