com.gargoylesoftware.base.collections
public class NotificationListEvent extends EventObject
Version: $Revision: 1.4 $
Field Summary | |
---|---|
int | action_ |
static int | CHANGE
Action indicating that an item in the list was change. |
int | endIndex_ |
static int | INSERT
Action indicating that an item was inserted into the list. |
List | newValues_ |
List | oldValues_ |
static int | REMOVE
Action indicating that an item was removed from the list. |
static long | serialVersionUID |
int | startIndex_ |
Constructor Summary | |
---|---|
NotificationListEvent(NotificationList source, int action, int startIndex, int endIndex, List oldValues, List newValues)
Create a new event. |
Method Summary | |
---|---|
protected void | assertNotNull(String fieldName, Object object)
Throw an exception if the specified object is null |
int | getAction()
Return the action which will be one of INSERT, REMOVE, CHANGE. |
int | getEndIndex()
Return the end index. |
List | getNewValues()
Return the new values |
List | getOldValues()
Return the old values. |
int | getStartIndex()
Return the start index. |
Parameters: source The NotificationList action The action that occured. This will be one of INSERT, REMOVE or CHANGE. startIndex The index of the first item that is affected. endIndex The index of the last item that is affected. oldValues The original values. newValues The new values.
Parameters: fieldName The name of the paremeter we are checking object The value of the parameter we are checking
Returns: The action.
Returns: The end index.
Returns: The new values.
Returns: The old values.
Returns: The start index.