public class ListDataEvent
extends java.util.EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENTS_CHANGED |
static int |
INTERVAL_ADDED |
static int |
INTERVAL_REMOVED |
| Constructor and Description |
|---|
ListDataEvent(java.lang.Object source_,
int type_,
int firstIndex_,
int lastIndex_)
Construct a ListDataEvent.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex0()
Get the index of the first row that changed.
|
int |
getIndex1()
Get the index of the last row that changed.
|
int |
getType()
Returns the type of event, which is always
CONTENTS_CHANGED.
|
public static final int CONTENTS_CHANGED
public static final int INTERVAL_ADDED
public static final int INTERVAL_REMOVED
public ListDataEvent(java.lang.Object source_,
int type_,
int firstIndex_,
int lastIndex_)
source_ - the object that initiated this event (usually a
DefaultListSelectionModel).type_ - an int specifying the type of event; must be
CONTENTS_CHANGED (INTERVAL_ADDED or INTERVAL_REMOVED are unused
in CHARVA).firstIndex_ - an index specifying the bottom of a range.lastIndex_ - an index specifying the top of a range.