charvax.swing.event

Class ListSelectionEvent


public class ListSelectionEvent
extends java.util.EventObject

An event that characterizes a change in the current selection. ListEventListeners will generally query the source of the event directly to find out the status of each potentially changed row.

Constructor Summary

ListSelectionEvent(Object source_, int firstIndex_, int lastIndex_, boolean isAdjusting_)
Construct a ListSelectionEvent.

Method Summary

int
getFirstIndex()
Get the index of the first row that changed
int
getLastIndex()
Get the index of the last row that changed

Constructor Details

ListSelectionEvent

public ListSelectionEvent(Object source_,
                          int firstIndex_,
                          int lastIndex_,
                          boolean isAdjusting_)
Construct a ListSelectionEvent.
Parameters:
source_ - the object that initiated this event (usually a DefaultListSelectionModel).
firstIndex_ - the index of the first row whose selection status has changed.
lastIndex_ - the index of the last row whose selection status has changed.
isAdjusting_ - not used in CHARVA.

Method Details

getFirstIndex

public int getFirstIndex()
Get the index of the first row that changed

getLastIndex

public int getLastIndex()
Get the index of the last row that changed