UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture.util
Class CollectionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--edu.berkeley.guir.lib.gesture.util.CollectionEvent
All Implemented Interfaces:
Serializable

public class CollectionEvent
extends EventObject

See Also:
Serialized Form

Field Summary
static int ELEMENT_ADDED
           
static int ELEMENT_CHANGED
           
static int ELEMENT_REMOVED
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CollectionEvent(Object source, int eventType, Collection elements, int startIndex)
           
CollectionEvent(Object source, int eventType, Object[] elements, int startIndex)
           
CollectionEvent(Object source, int eventType, Object element, int startIndex)
           
 
Method Summary
 Object getElement()
          only useful if only one thing was added/removed/changed
 int getElementCount()
           
 Object[] getElements()
           
 int getStartIndex()
           
 int getType()
           
 
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

ELEMENT_ADDED

public static final int ELEMENT_ADDED

ELEMENT_REMOVED

public static final int ELEMENT_REMOVED

ELEMENT_CHANGED

public static final int ELEMENT_CHANGED
Constructor Detail

CollectionEvent

public CollectionEvent(Object source,
                       int eventType,
                       Object element,
                       int startIndex)

CollectionEvent

public CollectionEvent(Object source,
                       int eventType,
                       Object[] elements,
                       int startIndex)

CollectionEvent

public CollectionEvent(Object source,
                       int eventType,
                       Collection elements,
                       int startIndex)
Method Detail

getElement

public Object getElement()
only useful if only one thing was added/removed/changed

getElements

public Object[] getElements()

getElementCount

public int getElementCount()

getType

public int getType()

getStartIndex

public int getStartIndex()

Copyright Information