com.ibm.as400.vaccess
Class VObjectEvent

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

public class VObjectEvent
extends java.util.EventObject

The VObjectEvent class represents an event that is fired when an AS/400 resource is changed, created, or deleted.

See Also:
VObjectListener, Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
VObjectEvent(java.lang.Object source, VObject object)
          Constructs a VObjectEvent object.
VObjectEvent(java.lang.Object source, VObject object, VNode parent)
          Constructs a VObjectEvent object.
 
Method Summary
 VObject getObject()
          Returns the affected AS/400 resource.
 VNode getParent()
          Returns the parent of the affected AS/400 resource.
 boolean isDuringLoad()
           
 
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
 

Constructor Detail

VObjectEvent

public VObjectEvent(java.lang.Object source,
                    VObject object)
Constructs a VObjectEvent object.
Parameters:
source - The event source.
object - The affected AS/400 resource.

VObjectEvent

public VObjectEvent(java.lang.Object source,
                    VObject object,
                    VNode parent)
Constructs a VObjectEvent object.
Parameters:
source - The event source.
object - The affected AS/400 resource.
parent - The parent of the affected AS/400 resource. This is only relevant for object created events.
Method Detail

getObject

public VObject getObject()
Returns the affected AS/400 resource.
Returns:
The AS/400 resource.

getParent

public VNode getParent()
Returns the parent of the affected AS/400 resource. This is only relevant for object created events.
Returns:
The parent, or null if none was set.

isDuringLoad

public boolean isDuringLoad()