E
- the type of elements in the list where the change occurredpublic class ListMultipleChangesEvent<E> extends ListChangeEvent<E>
List
have happened.ListChangeListener
,
ObservableList
,
Serialized FormConstructor and Description |
---|
ListMultipleChangesEvent(java.util.List<E> source,
ListChangeType type,
int index,
java.util.Collection<? extends E> affectedElements)
Creates a new event object.
|
ListMultipleChangesEvent(java.util.List<E> source,
ListChangeType type,
int index,
E affectedElement)
Creates a new event object.
|
Modifier and Type | Method and Description |
---|---|
E |
getAffectedElement()
Returns the first affected element.
|
java.util.Collection<? extends E> |
getAffectedElements()
Returns a collection of all elements that will be or have been affected by the list modification (e.g.
|
getIndex, getSource, getType
public ListMultipleChangesEvent(java.util.List<E> source, ListChangeType type, int index, java.util.Collection<? extends E> affectedElements)
source
- the list instance that has been modifiedtype
- the type of modification that happenedindex
- the index the first affected element has in the listaffectedElements
- a list of elements that have been affected (e.g. inserted or removed)public ListMultipleChangesEvent(java.util.List<E> source, ListChangeType type, int index, E affectedElement)
source
- the list instance that has been modifiedtype
- the type of modification that happenedindex
- the index the first affected element has in the listaffectedElement
- a list of elements that have been affected (e.g. inserted, removed)public java.util.Collection<? extends E> getAffectedElements()
public E getAffectedElement()
getAffectedElements()