public interface Editor
CommitFailedException
or adjust them using the NodeBuilder
instance passed to the EditorProvider
that returned this editor.
Note that the given builder can contain updates from multiple different
editors, so its state might not match exactly the state of the given
after state.Modifier and Type | Method and Description |
---|---|
Editor |
childNodeAdded(java.lang.String name,
NodeState after)
Processes an added child node.
|
Editor |
childNodeChanged(java.lang.String name,
NodeState before,
NodeState after)
Processes a changed child node.
|
Editor |
childNodeDeleted(java.lang.String name,
NodeState before)
Processes a deleted child node.
|
void |
enter(NodeState before,
NodeState after)
Called before the given before and after states are compared.
|
void |
leave(NodeState before,
NodeState after)
Called after the given before and after states are compared.
|
void |
propertyAdded(PropertyState after)
Processes an added property.
|
void |
propertyChanged(PropertyState before,
PropertyState after)
Processes a changed property.
|
void |
propertyDeleted(PropertyState before)
Processes a removed property.
|
void enter(NodeState before, NodeState after) throws CommitFailedException
before
- before state, non-existent if this node was addedafter
- after state, non-existent if this node was removedCommitFailedException
- if this commit should be rejectedvoid leave(NodeState before, NodeState after) throws CommitFailedException
before
- before state, non-existent if this node was addedafter
- after state, non-existent if this node was removedCommitFailedException
- if this commit should be rejectedvoid propertyAdded(PropertyState after) throws CommitFailedException
after
- the added propertyCommitFailedException
- if processing failedvoid propertyChanged(PropertyState before, PropertyState after) throws CommitFailedException
before
- the original propertyafter
- the changed propertyCommitFailedException
- if processing failedvoid propertyDeleted(PropertyState before) throws CommitFailedException
before
- the removed propertyCommitFailedException
- if processing failedEditor childNodeAdded(java.lang.String name, NodeState after) throws CommitFailedException
name
- name of the added nodeafter
- the added child nodenull
if the subtree does not need processingCommitFailedException
- if processing failedEditor childNodeChanged(java.lang.String name, NodeState before, NodeState after) throws CommitFailedException
name
- name of the changed nodebefore
- child node before the changeafter
- child node after the changenull
if the subtree does not need processingCommitFailedException
- if processing failedEditor childNodeDeleted(java.lang.String name, NodeState before) throws CommitFailedException
name
- name of the deleted nodebefore
- the deleted child nodenull
if the subtree does not need processingCommitFailedException
- if processing failed"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"