public class ListDataEvent
extends java.util.EventObject
ListDataListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENTS_CHANGED
An event type indicating items in the list were changed.
|
static int |
INTERVAL_ADDED
An event type indicating items were added to the list.
|
static int |
INTERVAL_REMOVED
An event type indicating items were removed from the list.
|
| Constructor and Description |
|---|
ListDataEvent(java.lang.Object source,
int type,
int index0,
int index1)
Creates a new
ListDataEvent |
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 index0,
int index1)
ListDataEventsource - the object that generated the eventtype - the type of event, one of the following values:
index0 - the first index of the interval affected by the list changeindex1 - the last index of the interval affected by the list changepublic int getIndex0()
public int getIndex1()
public int getType()