All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.event.ListSelectionEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.sun.java.swing.event.ListSelectionEvent
- public class ListSelectionEvent
- extends EventObject
An event that characterizes a change in the current
selection. The change is limited to a row interval.
ListSelectionListeners will generally query the source of
the event for the new selected status of each potentially
changed row.
- See Also:
- ListSelectionModel
-
firstIndex
-
-
lastIndex
-
-
ListSelectionEvent(ListSelectionModel, int, int)
-
Represents a change in selection status between firstIndex
and lastIndex inclusive (firstIndex is less than or equal to
lastIndex).
-
getFirstIndex()
- Return the first row whose selection value may have changed.
-
getLastIndex()
- Return the last row whose selection value may have changed.
firstIndex
protected int firstIndex
lastIndex
protected int lastIndex
ListSelectionEvent
public ListSelectionEvent(ListSelectionModel source,
int firstIndex,
int lastIndex)
- Represents a change in selection status between firstIndex
and lastIndex inclusive (firstIndex is less than or equal to
lastIndex). Atleast one of the rows within the range will
have changed, a good ListSelectionModel implementation will
keep the range as small as possible.
getFirstIndex
public int getFirstIndex()
- Return the first row whose selection value may have changed.
getLastIndex
public int getLastIndex()
- Return the last row whose selection value may have changed.
All Packages Class Hierarchy This Package Previous Next Index