org.jdesktop.binding
Class SelectionModelEvent
java.lang.Object
java.util.EventObject
org.jdesktop.binding.SelectionModelEvent
- All Implemented Interfaces:
- java.io.Serializable
public class SelectionModelEvent
- extends java.util.EventObject
Event for tracking changes in the selected rows in a SelectionModel
- Author:
- Richard Bair
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SelectionModelEvent
public SelectionModelEvent(SelectionModel source,
int firstIndex,
int lastIndex)
- Create a new SelectionModelEvent. The range between firstIndex and lastIndex
inclusive (firstIndex is less than or equal to lastIndex) represents a change
in selection state of those rows. At least one of the rows within the range
will have changed. A good SelectionModel implementation will keep the range
as small as possible.
- Parameters:
source
- the SelectionModel that fired this eventfirstIndex
- the first index that changedlastIndex
- the last index that changed, lastIndex >= firstIndex
getFirstIndex
public int getFirstIndex()
- Returns:
- the first row whose selection value may have changed, where zero is the
first row
getLastIndex
public int getLastIndex()
- Returns:
- the last row whose selection value may have changed, where zero is the
last row
Copyright © 2005 Sun Microsystems All Rights Reserved.