org.xnap.event
Class ListEvent
java.lang.Object
java.util.EventObject
org.xnap.event.ListEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ListEvent
- extends java.util.EventObject
An event that characterizes a change in a list.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
ListEvent(java.lang.Object source,
int id,
java.lang.Object item)
Constructs a list event. |
Method Summary |
int |
getID()
Returns ITEM_ADDED or ITEM_REMOVED . |
java.lang.Object |
getItem()
Returns the item that was added or removed. |
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 |
ITEM_ADDED
public static final int ITEM_ADDED
- See Also:
- Constant Field Values
ITEM_REMOVED
public static final int ITEM_REMOVED
- See Also:
- Constant Field Values
ListEvent
public ListEvent(java.lang.Object source,
int id,
java.lang.Object item)
- Constructs a list event.
- Parameters:
source
- the object on which the event initially occurredid
- ITEM_ADDED
or ITEM_REMOVED
item
- the item that was added or removed
getItem
public java.lang.Object getItem()
- Returns the item that was added or removed.
getID
public int getID()
- Returns
ITEM_ADDED
or ITEM_REMOVED
.
Copyright © 2001-2005 XNap Team. All Rights Reserved.