Class TreeNodeRemovedEvent

  • All Implemented Interfaces:
    Serializable

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

      • TreeNodeRemovedEvent

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

      • getParentNode

        @Pure
        public TreeNode<?,​?> getParentNode()
        Replies the node that fire the event.
        Returns:
        the parent nodeof the removed child
      • getChildIndex

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

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