All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class uhr.core.structure.ContainerEventStd

java.lang.Object
   |
   +----uhr.core.structure.ContainerEventStd

public class ContainerEventStd
extends Object
implements ContainerEvent
This event occurs when the various constants happen.


Constructor Index

 o ContainerEventStd(int, Container, Node, Node)

Method Index

 o getChildNode()
Returns the child node that was appended, inserted or removed.
 o getContainer()
Returns the orginiating node of the event.
 o getEventName()
Returns the event name, such as "uhr.core.CheckNeeds".
 o getEventType()
Returns the event type, which is one of the constants in this interface.
 o getNodeBefore()
For event type CHILD_INSERTED, returns the "node before".
 o getNodeRemoved()
For event type CHILD_REMOVED, returns the node actually removed, which may be null.
 o setEventName(String)
Sets the event name.

Constructors

 o ContainerEventStd
 public ContainerEventStd(int eventType,
                          Container container,
                          Node childNode,
                          Node otherNode)

Methods

 o getEventType
 public int getEventType()
Returns the event type, which is one of the constants in this interface.

Returns:
the event type constant.
 o getContainer
 public Container getContainer()
Returns the orginiating node of the event. For example if a CHILD_APPENDED event occurred, it was appended to the ContainerNode returned.

Returns:
the originating node of the event.
 o getChildNode
 public Node getChildNode()
Returns the child node that was appended, inserted or removed. For ALL_CHILDREN_REMOVED null is returned.

Returns:
the child node involved in the event or null.
 o getNodeBefore
 public Node getNodeBefore()
For event type CHILD_INSERTED, returns the "node before". For all other event types returns null.

Returns:
the "node before" or null.
 o getNodeRemoved
 public Node getNodeRemoved()
For event type CHILD_REMOVED, returns the node actually removed, which may be null. For all other event types returns null.

Returns:
the actual node removed or null.
 o getEventName
 public String getEventName()
Returns the event name, such as "uhr.core.CheckNeeds". This may be null for non-semantic events.

 o setEventName
 public void setEventName(String name)
Sets the event name. This is required for semantic events.

Parameters:
name - the event name.

All Packages  Class Hierarchy  This Package  Previous  Next  Index