public class DefaultEventHandler extends java.lang.Object implements EventHandler
EventHandler
that
does nothing.Modifier and Type | Field and Description |
---|---|
static EventHandler |
INSTANCE |
Constructor and Description |
---|
DefaultEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
EventHandler |
getChildHandler(java.lang.String name,
NodeState before,
NodeState after)
Returns a handler of events within the given child node, or
null if changes within that child are not to be processed. |
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
nodeAdded(java.lang.String name,
NodeState after)
Notification for an added node
|
void |
nodeDeleted(java.lang.String name,
NodeState before)
Notification for a deleted node
|
void |
nodeMoved(java.lang.String sourcePath,
java.lang.String name,
NodeState moved)
Notification for a moved node
|
void |
nodeReordered(java.lang.String destName,
java.lang.String name,
NodeState reordered)
Notification for a reordered node
|
void |
propertyAdded(PropertyState after)
Notification for an added property
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Notification for a changed property
|
void |
propertyDeleted(PropertyState before)
Notification for a deleted property
|
public static EventHandler INSTANCE
public void enter(NodeState before, NodeState after)
EventHandler
enter
in interface EventHandler
before
- before state, non-existent if this node was addedafter
- after state, non-existent if this node was removedpublic void leave(NodeState before, NodeState after)
EventHandler
leave
in interface EventHandler
before
- before state, non-existent if this node was addedafter
- after state, non-existent if this node was removedpublic EventHandler getChildHandler(java.lang.String name, NodeState before, NodeState after)
EventHandler
null
if changes within that child are not to be processed.getChildHandler
in interface EventHandler
name
- name of the child nodebefore
- before state of the child node, possibly non-existentafter
- after state of the child node, possibly non-existentthis
public void propertyAdded(PropertyState after)
EventHandler
propertyAdded
in interface EventHandler
after
- added propertypublic void propertyChanged(PropertyState before, PropertyState after)
EventHandler
propertyChanged
in interface EventHandler
before
- property before the changeafter
- property after the changepublic void propertyDeleted(PropertyState before)
EventHandler
propertyDeleted
in interface EventHandler
before
- deleted propertypublic void nodeAdded(java.lang.String name, NodeState after)
EventHandler
nodeAdded
in interface EventHandler
name
- name of the nodeafter
- added nodepublic void nodeDeleted(java.lang.String name, NodeState before)
EventHandler
nodeDeleted
in interface EventHandler
name
- name of the deleted nodebefore
- deleted nodepublic void nodeMoved(java.lang.String sourcePath, java.lang.String name, NodeState moved)
EventHandler
nodeMoved
in interface EventHandler
sourcePath
- source of the moved nodename
- name of the moved nodemoved
- moved nodepublic void nodeReordered(java.lang.String destName, java.lang.String name, NodeState reordered)
EventHandler
nodeReordered
in interface EventHandler
destName
- name of the orderBefore()
destination nodename
- name of the moved nodereordered
- moved nodeCopyright © 2010 - 2020 Adobe. All Rights Reserved