com.virtuosotechnologies.lib.container
Class ObjectSetEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.virtuosotechnologies.lib.container.ObjectSetEvent
All Implemented Interfaces:
Serializable

public class ObjectSetEvent
extends EventObject

An event sent when an Object is added or removed in an ObjectSet.

See Also:
Serialized Form

Nested Class Summary
static class ObjectSetEvent.Type
          The type of event (added or removed)
 
Field Summary
static ObjectSetEvent.Type ADDED
          A Type indicating the object was added
static ObjectSetEvent.Type REMOVED
          A Type indicating the object was removed
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ObjectSetEvent(ObjectSet source, ObjectSetEvent.Type type, Object object)
          Constructor
 
Method Summary
 ObjectSetEvent.Type getEventType()
          Get the type of event, either ADDED or REMOVED
 Object getObject()
          Get the Object added or removed
 ObjectSet getObjectSet()
          Get the source.
 
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

ADDED

public static final ObjectSetEvent.Type ADDED
A Type indicating the object was added


REMOVED

public static final ObjectSetEvent.Type REMOVED
A Type indicating the object was removed

Constructor Detail

ObjectSetEvent

public ObjectSetEvent(ObjectSet source,
                      ObjectSetEvent.Type type,
                      Object object)
Constructor

Parameters:
source - source ObjectSet
type - the type of event (ADDED or REMOVED)
object - the object in question
Method Detail

getObjectSet

public ObjectSet getObjectSet()
Get the source.

Returns:
source

getEventType

public ObjectSetEvent.Type getEventType()
Get the type of event, either ADDED or REMOVED

Returns:
the object

getObject

public Object getObject()
Get the Object added or removed

Returns:
type