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.
-
ContainerEventStd(int, Container, Node, Node)
-
-
getChildNode()
- Returns the child node that was appended, inserted or removed.
-
getContainer()
- Returns the orginiating node of the event.
-
getEventName()
- Returns the event name, such as "uhr.core.CheckNeeds".
-
getEventType()
- Returns the event type, which is one of the constants in this
interface.
-
getNodeBefore()
- For event type CHILD_INSERTED, returns the "node before".
-
getNodeRemoved()
- For event type CHILD_REMOVED, returns the node actually removed,
which may be null.
-
setEventName(String)
- Sets the event name.
ContainerEventStd
public ContainerEventStd(int eventType,
Container container,
Node childNode,
Node otherNode)
getEventType
public int getEventType()
- Returns the event type, which is one of the constants in this
interface.
- Returns:
- the event type constant.
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.
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.
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.
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.
getEventName
public String getEventName()
- Returns the event name, such as "uhr.core.CheckNeeds". This may
be null for non-semantic events.
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