public interface NodeStateListener extends ItemStateListener
ItemStateListener
allowing a client to be
additionally informed about changes on a NodeState
.Modifier and Type | Method and Description |
---|---|
void |
nodeAdded(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been added
|
void |
nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal
or addition of a child node.
|
void |
nodeRemoved(NodeState state,
Name name,
int index,
NodeId id)
Called when a child node has been removed
|
void |
nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically
as result of a reorder operation.
|
stateCreated, stateDestroyed, stateDiscarded, stateModified
void nodeAdded(NodeState state, Name name, int index, NodeId id)
state
- node state that changedname
- name of node that was addedindex
- index of new nodeid
- id of new nodevoid nodeModified(NodeState state)
Please note, that this method is not called if
ItemStateListener.stateModified(ItemState)
was called.
state
- node state that changedvoid nodesReplaced(NodeState state)
state
- node state that changedCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.