Class TreeNodeParentChangedEvent

  • All Implemented Interfaces:
    Serializable

    public class TreeNodeParentChangedEvent
    extends EventObject
    Called each time an hierarchy update event occurs on a tree node.
    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:41
    Author:
    Stéphane GALLAND
    See Also:
    Serialized Form
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathtree
    • Constructor Detail

      • TreeNodeParentChangedEvent

        public TreeNodeParentChangedEvent​(TreeNode<?,​?> child,
                                          TreeNode<?,​?> oldParent1,
                                          TreeNode<?,​?> newParent1)
        Constructor.
        Parameters:
        child - is the node that changed of parent node
        oldParent1 - is the old parent node.
        newParent1 - is the new parent node.
    • Method Detail

      • getChildNode

        @Pure
        public TreeNode<?,​?> getChildNode()
        Replies the node that fire the event.
        Returns:
        the node that fire the event.
      • getOldParent

        @Pure
        public TreeNode<?,​?> getOldParent()
        Replies the old parent node.
        Returns:
        the old parent node of the event firing node.
      • getNewParent

        @Pure
        public TreeNode<?,​?> getNewParent()
        Replies the new parent node.
        Returns:
        the new parent node of the event firing node.