Maven module :un.api : api-common :
Class : un.api.collection.CollectionEvent
Extends/Implements : un.api.event.DefaultEvent
Subclasses : -

Collection event.
author  Johann Sorel


Variables : TYPE_ADD, TYPE_REMOVE, TYPE_REPLACE, TYPE_REPLACEALL
Functions : CollectionEvent, getType, getStartIndex, getEndIndex, getOldElements, getNewElements


public int TYPE_ADD

public int TYPE_REMOVE

public int TYPE_REPLACE

public int TYPE_REPLACEALL


public void CollectionEvent (EventSource source, Event trigger, int type, int startIndex, int endIndex, Object[] oldElements, Object[] newElements)


Collection event type.
return  int, one of CollectionEvent.TYPE_X
public int getType ()


For sequence collections, get the start index of the event.
return  int or -1 if not a sequence
public int getStartIndex ()


For sequence collections, get the end index of the event.
return  int or -1 if not a sequence
public int getEndIndex ()


Get the old elements, removed or replaced.
return  Object[] never null
public Object[] getOldElements ()


Get the new elements, inserted or replacing.
return  Object[] never null
public Object[] getNewElements ()