|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.gargoylesoftware.base.collections.NotificationListEvent
public class NotificationListEvent
An event that is fired when a NotificationList changes.
Field Summary | |
---|---|
private int |
action_
|
static int |
CHANGE
Action indicating that an item in the list was change. |
private int |
endIndex_
|
static int |
INSERT
Action indicating that an item was inserted into the list. |
private java.util.List |
newValues_
|
private java.util.List |
oldValues_
|
static int |
REMOVE
Action indicating that an item was removed from the list. |
private static long |
serialVersionUID
|
private int |
startIndex_
|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
NotificationListEvent(NotificationList source,
int action,
int startIndex,
int endIndex,
java.util.List oldValues,
java.util.List newValues)
Create a new event. |
Method Summary | |
---|---|
protected void |
assertNotNull(java.lang.String fieldName,
java.lang.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. |
java.util.List |
getNewValues()
Return the new values |
java.util.List |
getOldValues()
Return the old values. |
int |
getStartIndex()
Return the start index. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
public static final int INSERT
public static final int REMOVE
public static final int CHANGE
private final int startIndex_
private final int endIndex_
private final int action_
private final java.util.List oldValues_
private final java.util.List newValues_
Constructor Detail |
---|
public NotificationListEvent(NotificationList source, int action, int startIndex, int endIndex, java.util.List oldValues, java.util.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.Method Detail |
---|
public int getStartIndex()
public int getEndIndex()
public int getAction()
public java.util.List getNewValues()
public java.util.List getOldValues()
protected final void assertNotNull(java.lang.String fieldName, java.lang.Object object)
fieldName
- The name of the paremeter we are checkingobject
- The value of the parameter we are checking
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |