|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.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
(firstIndex is less than or equal to
lastIndex ). |
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 true if this is one of multiple change events. |
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
). At least one of the rows within the range will
have changed, a good ListSelectionModel
implementation will
keep the range as small as possible.
firstIndex
- the first index that changedlastIndex
- the last index that changed, lastIndex >= firstIndexisAdjusting
- an indication that this is one of rapid a series of eventsMethod Detail |
---|
public int getFirstIndex()
public int getLastIndex()
public boolean getValueIsAdjusting()
public String toString()
toString
in class EventObject