com.ibm.as400.resource
Class ResourceEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.as400.resource.ResourceEvent
All Implemented Interfaces:
java.io.Serializable

public class ResourceEvent
extends java.util.EventObject

The ResourceEvent class represents a resource event.

See Also:
Serialized Form

Field Summary
static int ATTRIBUTE_CHANGES_CANCELED
          Event ID indicating that attribute changes are canceled.
static int ATTRIBUTE_CHANGES_COMMITTED
          Event ID indicating that attribute changes are committed.
static int ATTRIBUTE_VALUE_CHANGED
          Event ID indicating that an attribute is changed.
static int ATTRIBUTE_VALUES_REFRESHED
          Event ID indicating that attribute values are refreshed.
static int RESOURCE_CREATED
          Event ID indicating that a resource is created.
static int RESOURCE_DELETED
          Event ID indicating that a resource is deleted.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ResourceEvent(java.lang.Object source, int eventID)
          Constructs a ResourceEvent object.
ResourceEvent(java.lang.Object source, int eventID, java.lang.Object attributeID, java.lang.Object value)
          Constructs a ResourceEvent object.
 
Method Summary
 java.lang.Object getAttributeID()
          Returns the associated attribute ID, or null if none.
 int getID()
          Returns the event ID.
 java.lang.Object getValue()
          Returns the associated attribute value, or null if none.
 
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

ATTRIBUTE_CHANGES_CANCELED

public static final int ATTRIBUTE_CHANGES_CANCELED
Event ID indicating that attribute changes are canceled.

ATTRIBUTE_CHANGES_COMMITTED

public static final int ATTRIBUTE_CHANGES_COMMITTED
Event ID indicating that attribute changes are committed.

ATTRIBUTE_VALUES_REFRESHED

public static final int ATTRIBUTE_VALUES_REFRESHED
Event ID indicating that attribute values are refreshed.

ATTRIBUTE_VALUE_CHANGED

public static final int ATTRIBUTE_VALUE_CHANGED
Event ID indicating that an attribute is changed.

RESOURCE_CREATED

public static final int RESOURCE_CREATED
Event ID indicating that a resource is created.

RESOURCE_DELETED

public static final int RESOURCE_DELETED
Event ID indicating that a resource is deleted.
Constructor Detail

ResourceEvent

public ResourceEvent(java.lang.Object source,
                     int eventID)
Constructs a ResourceEvent object.
Parameters:
source - The source.
eventID - The event ID.

ResourceEvent

public ResourceEvent(java.lang.Object source,
                     int eventID,
                     java.lang.Object attributeID,
                     java.lang.Object value)
Constructs a ResourceEvent object.
Parameters:
source - The source.
eventID - The event ID.
attributeID - Identifies the associated attribute, or null if none.
value - The attribute value.
Method Detail

getAttributeID

public java.lang.Object getAttributeID()
Returns the associated attribute ID, or null if none.
Returns:
The associated attribute ID, or null if none.

getID

public int getID()
Returns the event ID.
Returns:
The event ID.

getValue

public java.lang.Object getValue()
Returns the associated attribute value, or null if none.
Returns:
The associated attribute value, or null if none.