org.xnap.event
Class ListEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
static int ITEM_ADDED
           
static int ITEM_REMOVED
           
 
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
 

Field Detail

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
Constructor Detail

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 occurred
id - ITEM_ADDED or ITEM_REMOVED
item - the item that was added or removed
Method Detail

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.