|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.jpa.jpql.model.ListChangeEvent<T>
public class ListChangeEvent<T>
The default implementation of IListChangeListener
where the generics is the type of the
items.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.model.IListChangeEvent |
---|
IListChangeEvent.EventType |
Constructor Summary | |
---|---|
ListChangeEvent(StateObject source,
java.util.List<? extends T> list,
IListChangeEvent.EventType eventType,
java.lang.String listName,
java.util.List<? extends T> items,
int startIndex,
int endIndex)
Creates a new ListChangeEvent . |
Method Summary | ||
---|---|---|
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. |
|
|
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. |
|
IterableListIterator<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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListChangeEvent(StateObject source, java.util.List<? extends T> list, IListChangeEvent.EventType eventType, java.lang.String listName, java.util.List<? extends T> items, int startIndex, int endIndex)
ListChangeEvent
.
source
- The source where the modification occurred and that fired the eventMethod Detail |
---|
public int getEndIndex()
getEndIndex
in interface IListChangeEvent<T>
public IListChangeEvent.EventType getEventType()
getEventType
in interface IListChangeEvent<T>
types
of changespublic java.util.List<T> getList()
getList
in interface IListChangeEvent<T>
public java.lang.String getListName()
getListName
in interface IListChangeEvent<T>
IListChangeListeners
have
been registered with the source to be notified upon changespublic <S extends ListHolderStateObject<? extends T>> S getSource()
getSource
in interface IListChangeEvent<T>
S
- The type of the source owning the list
public int getStartIndex()
getStartIndex
in interface IListChangeEvent<T>
public IterableListIterator<T> items()
IListChangeEvent.EventType.ADDED
);
IListChangeEvent.EventType.REMOVED
);
IListChangeEvent.EventType.MOVED_UP
);
IListChangeEvent.EventType.MOVED_DOWN
);
IListChangeEvent.EventType.REPLACED
);
IListChangeEvent.EventType.CHANGED
).
items
in interface IListChangeEvent<T>
IListChangeEvent.EventType
public int itemsSize()
itemsSize
in interface IListChangeEvent<T>
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |