E
- the type of elements in the list where the modifications are monitoredpublic interface ListChangeListener<E> extends java.util.EventListener
List
(e.g. ObservableList
)
should implement this interface and register as a listener.Modifier and Type | Method and Description |
---|---|
void |
afterElementReplaced(ListReplaceEvent<E> event)
Called after an element in the monitored list has been replaced by another one.
|
void |
afterElementsAdded(ListAddEvent<E> event)
Called after one or more elements have been added to monitored list.
|
void |
afterElementsRemoved(ListRemoveEvent<E,E> event)
Called after one or more elements have been removed from monitored list.
|
void |
beforeElementReplaced(ListReplaceEvent<E> event)
Called before an element in the monitored list will be replaced by another one.
|
void |
beforeElementsAdded(ListAddEvent<E> event)
Called before one or more elements are added to monitored list.
|
void |
beforeElementsRemoved(ListRemoveEvent<E,java.lang.Object> event)
Called before one or more elements will be removed from monitored list.
|
void beforeElementsAdded(ListAddEvent<E> event)
event
- the event object containing further information on the modificationvoid afterElementsAdded(ListAddEvent<E> event)
event
- the event object containing further information on the modificationvoid beforeElementReplaced(ListReplaceEvent<E> event)
event
- the event object containing further information on the modificationvoid afterElementReplaced(ListReplaceEvent<E> event)
event
- the event object containing further information on the modificationvoid beforeElementsRemoved(ListRemoveEvent<E,java.lang.Object> event)
event
- the event object containing further information on the modificationvoid afterElementsRemoved(ListRemoveEvent<E,E> event)
event
- the event object containing further information on the modification