E
- the type of elements in the list where the change occurredpublic class ListReplaceEvent<E> extends ListChangeEvent<E>
List
.ListChangeListener
,
ObservableList
,
Serialized FormConstructor and Description |
---|
ListReplaceEvent(java.util.List<E> source,
int index,
E oldElement,
E newElement)
Creates a new event object.
|
Modifier and Type | Method and Description |
---|---|
E |
getNewElement()
Returns the element that is now contained in the list.
|
E |
getOldElement()
Returns the element that has been replaced or will be replaced.
|
getIndex, getSource, getType
public ListReplaceEvent(java.util.List<E> source, int index, E oldElement, E newElement)
source
- the list instance that has been modifiedoldElement
- the element that will be or has been replaced in the listnewElement
- the element that is the replacement for the old elementpublic E getOldElement()
public E getNewElement()