|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.swing.event
|
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 firstIndex and
lastIndex , inclusive. |
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 whether or not this is one in a series of multiple events, where changes are still being made. |
String |
toString()
Returns a String that displays and identifies this
object's properties. |
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)
firstIndex
and
lastIndex
, inclusive. firstIndex
is less than or equal to
lastIndex
. The selection of at least one index within the range will
have changed.
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()
getFirstIndex() <= getLastIndex()
public int getLastIndex()
getLastIndex() >= getFirstIndex()
public boolean getValueIsAdjusting()
ListSelectionModel.setValueIsAdjusting(boolean)
for
more details on how this is used.
true
if this is one in a series of multiple events,
where changes are still being madepublic String toString()
String
that displays and identifies this
object's properties.
toString
in class EventObject