E
- the type of elements in the list where the change occurredpublic class ListChangeEvent<E> extends java.util.EventObject
List
has been modified.ListChangeListener
,
ObservableList
,
Serialized FormConstructor and Description |
---|
ListChangeEvent(java.util.List<E> source,
ListChangeType type,
int index)
Creates a new event object.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the index the first inserted element has in the list.
|
java.util.List<E> |
getSource()
Returns the list instance where the change occurred.
|
ListChangeType |
getType()
Returns the type of change that happened.
|
public ListChangeEvent(java.util.List<E> source, ListChangeType type, int index)
source
- the list instance that has been modifiedtype
- the type of modification that happenedpublic java.util.List<E> getSource()
getSource
in class java.util.EventObject
public ListChangeType getType()
ListChangeType
public int getIndex()