Module java.desktop

Interface MutableTreeNode

    • Method Detail

      • insert

        void insert​(MutableTreeNode child,
                    int index)
        Adds child to the receiver at index. child will be messaged with setParent.
        Parameters:
        child - node to be added
        index - index of the receiver
      • remove

        void remove​(int index)
        Removes the child at index from the receiver.
        Parameters:
        index - index of child to be removed
      • remove

        void remove​(MutableTreeNode node)
        Removes node from the receiver. setParent will be messaged on node.
        Parameters:
        node - node to be removed from the receiver
      • setUserObject

        void setUserObject​(Object object)
        Resets the user object of the receiver to object.
        Parameters:
        object - object to be set as a receiver
      • removeFromParent

        void removeFromParent()
        Removes the receiver from its parent.
      • setParent

        void setParent​(MutableTreeNode newParent)
        Sets the parent of the receiver to newParent.
        Parameters:
        newParent - node to be set as parent of the receiver

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部