public interface IListChangeEvent<T>
IListChangeListener
. It contains the information
regarding the content of a list being changed.Modifier and Type | Interface and Description |
---|---|
static class |
IListChangeEvent.EventType
This enumeration lists the possible modification a list can have.
|
Modifier and Type | Method and Description |
---|---|
int |
getEndIndex()
Returns the index of where the change occurred in the list.
|
IListChangeEvent.EventType |
getEventType()
Returns the type of change that occurred in the list.
|
java.util.List<T> |
getList()
Returns a copy of the actual list after the change has happened.
|
java.lang.String |
getListName()
Returns the name describing the list.
|
<S extends ListHolderStateObject<? extends T>> |
getSource()
Returns the source where the modification occurred and that fired the event.
|
int |
getStartIndex()
Returns the index of where the change occurred in the list.
|
ListIterable<T> |
items()
Returns the list of items that have caused the original list to change.
|
int |
itemsSize()
Returns the number of items that caused the original list to change.
|
int getEndIndex()
IListChangeEvent.EventType getEventType()
types
of changesjava.util.List<T> getList()
java.lang.String getListName()
IListChangeListeners
have
been registered with the source to be notified upon changes<S extends ListHolderStateObject<? extends T>> S getSource()
S
- The type of the source owning the listint getStartIndex()
ListIterable<T> items()
IListChangeEvent.EventType.ADDED
);
IListChangeEvent.EventType.REMOVED
);
IListChangeEvent.EventType.MOVED_UP
);
IListChangeEvent.EventType.MOVED_DOWN
);
IListChangeEvent.EventType.REPLACED
);
IListChangeEvent.EventType.CHANGED
).
IListChangeEvent.EventType
int itemsSize()