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

Variable Index

 o firstIndex
 o lastIndex

Constructor Index

 o ListSelectionEvent(ListSelectionModel, int, int)
Represents a change in selection status between firstIndex and lastIndex inclusive (firstIndex is less than or equal to lastIndex).

Method Index

 o getFirstIndex()
Return the first row whose selection value may have changed.
 o getLastIndex()
Return the last row whose selection value may have changed.

Variables

 o firstIndex
 protected int firstIndex
 o lastIndex
 protected int lastIndex

Constructors

 o 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.

Methods

 o getFirstIndex
 public int getFirstIndex()
Return the first row whose selection value may have changed.

 o getLastIndex
 public int getLastIndex()
Return the last row whose selection value may have changed.


All Packages  Class Hierarchy  This Package  Previous  Next  Index