Class TreeNodeAddedEvent

  • All Implemented Interfaces:
    Serializable

    public class TreeNodeAddedEvent
    extends EventObject
    Called each time an addition 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

      • TreeNodeAddedEvent

        public TreeNodeAddedEvent​(TreeNode<?,​?> source1,
                                  int childIndex1,
                                  TreeNode<?,​?> child1)
        Construct the event.
        Parameters:
        source1 - is the node on which the event occured
        childIndex1 - is the index of the new child
        child1 - is the new child
    • Method Detail

      • getParentNode

        @Pure
        public TreeNode<?,​?> getParentNode()
        Replies the node that fire the event.
        Returns:
        the node inside which a node was added.
      • getChildIndex

        @Pure
        public int getChildIndex()
        Replies the index of the child node that changed.
        Returns:
        the index of the new node
      • getChild

        @Pure
        public TreeNode<?,​?> getChild()
        Replies the child node that changed.
        Returns:
        the new node