java.lang.Objectjava.util.EventObject
javax.swing.event.ListSelectionEvent
public class ListSelectionEvent
An event that characterizes a change in selection. The change is limited to a a single inclusive interval. The selection of at least one index within the range will have changed. A decent ListSelectionModel implementation will keep the range as small as possible.
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.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans TM has been added to the java.beans package. Please see XMLEncoder .
Field Summary |
---|
Fields inherited from class java.util. EventObject |
---|
source |
Constructor Summary | |
---|---|
ListSelectionEvent
(
Object
Represents a change in selection status between firstIndex and ![]() ![]() |
Method Summary | |
---|---|
int |
getFirstIndex
() Returns the index of the first row whose selection may have changed. |
int |
getLastIndex
() Returns the index of the last row whose selection may have changed. |
boolean |
getValueIsAdjusting
() Returns ![]() ![]() ![]() ![]() ![]() |
String |
toString
() Returns a ![]() ![]() |
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 |
---|
public ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting)
Method Detail |
---|
public int getFirstIndex()
public int getLastIndex()
public boolean getValueIsAdjusting()
public String toString()