| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class ListSelectionEvent extends EventObject
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 {@code ListSelectionModel} implementation will keep the range as small as possible. {@code 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 JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting) Represents a change in selection status between and , inclusive. |
Method Summary | |
---|---|
int |
Returns the index of the first row whose selection may have changed. |
int |
Returns the index of the last row whose selection may have changed. |
boolean |
Returns whether or not this is one in a series of multiple events, where changes are still being made. |
String |
toString() Returns a that displays and identifies this object's properties. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListSelectionEvent(Object source, int firstIndex, int lastIndex, boolean isAdjusting)
source
firstIndex
- the first index in the range, <= lastIndexlastIndex
- the last index in the range, >= firstIndexisAdjusting
- whether or not this is one in a series of
multiple events, where changes are still being madeMethod Detail |
---|
public int getFirstIndex()
public int getLastIndex()
public boolean getValueIsAdjusting()
public String toString()
toString
in class EventObject
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |