public class NotificationListEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE
Action indicating that an item in the list was change.
|
static int |
INSERT
Action indicating that an item was inserted into the list.
|
static int |
REMOVE
Action indicating that an item was removed from the list.
|
source
Constructor and Description |
---|
NotificationListEvent(NotificationList source,
int action,
int startIndex,
int endIndex,
List oldValues,
List newValues)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getSource, toString
public static final int INSERT
public static final int REMOVE
public static final int CHANGE
public NotificationListEvent(NotificationList source, int action, int startIndex, int endIndex, List oldValues, List newValues)
source
- The NotificationListaction
- 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.public int getStartIndex()
public int getEndIndex()
public int getAction()
public List getNewValues()
public List getOldValues()
Copyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.