Interface NodeChangeListener<N>

Type Parameters:
N - the node generic type
All Known Implementing Classes:
NodeChangeListener.Base, NodeChangeNotifier, NodeChangeQueue, NodeContextChangeAdapter

public interface NodeChangeListener<N>
A listener for node changes.
Author:
Julien Viet
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A base implementation that can be subclassed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAdd(N target, N parent, N previous)
    A node was added.
    void
    onCreate(N target, N parent, N previous, String name)
    A node was created.
    void
    onDestroy(N target, N parent)
    A node was destroyed.
    void
    onMove(N target, N from, N to, N previous)
    A node was moved.
    void
    onRemove(N target, N parent)
    A node was removed.
    void
    onRename(N target, N parent, String name)
    A node was renamed.
    void
    onUpdate(N target, NodeState state)
    A node was updated.
  • Method Details

    • onAdd

      void onAdd(N target, N parent, N previous)
      A node was added.
      Parameters:
      target - the added node
      parent - the parent node
      previous - the optional previous node
    • onCreate

      void onCreate(N target, N parent, N previous, String name)
      A node was created.
      Parameters:
      target - the created node
      parent - the parent node
      previous - the optional previous node
      name - the name of the created node
    • onRemove

      void onRemove(N target, N parent)
      A node was removed.
      Parameters:
      target - the removed node
      parent - the parent node
    • onDestroy

      void onDestroy(N target, N parent)
      A node was destroyed.
      Parameters:
      target - the destroyed node
      parent - the parent node
    • onRename

      void onRename(N target, N parent, String name)
      A node was renamed.
      Parameters:
      target - the renamed node
      parent - the parent node
      name - the new node name
    • onUpdate

      void onUpdate(N target, NodeState state)
      A node was updated.
      Parameters:
      target - the updated node
      state - the new state
    • onMove

      void onMove(N target, N from, N to, N previous)
      A node was moved.
      Parameters:
      target - the moved node.
      from - the previous parent
      to - the new parent
      previous - the optional previous node