@DefaultNonNull public interface ITreeModelChangedListener<T>
| Modifier and Type | Method and Description |
|---|---|
void |
onNodeAdded(T parent,
int index,
T node)
Called after a node is added in the model
|
void |
onNodeRemoved(T oldParent,
int oldIndex,
T deletedNode)
Called after a node is removed in the model
|
void |
onNodeUpdated(T node)
Called after a node is updated in the model.
|
void onNodeAdded(@Nullable T parent, int index, T node) throws Exception
parent - the parent of the added nodeindex - the index of the added nodenode - the added nodeExceptionvoid onNodeRemoved(@Nullable T oldParent, int oldIndex, T deletedNode) throws Exception
oldParent - the parent of the removed nodeoldIndex - the index of the node that was removeddeletedNode - The node that was just deletedExceptionCopyright © 2017 etc.to. All rights reserved.