Class TreeNode

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  TreeNode.Insertable
      Language elements to be inserted.
      (package private) static class  TreeNode.InsertionPoint
      Denotes insertion points around this node.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeNode​(TreeNode parent, org.eclipse.swt.graphics.Image image)
      Creates a tree node.
    • Field Detail

      • image

        private org.eclipse.swt.graphics.Image image
    • Constructor Detail

      • TreeNode

        TreeNode​(TreeNode parent,
                 org.eclipse.swt.graphics.Image image)
        Creates a tree node.
        Parameters:
        parent - the parent node
        image - the image of the node (may be null)
    • Method Detail

      • getParent

        TreeNode getParent()
        Returns the parent node.
        Returns:
        the parent node (may be null)
      • setChildren

        void setChildren​(TreeNode[] children)
        Defines the children.
        Parameters:
        children - the children
      • hasChildren

        boolean hasChildren()
        Returns whether this node has children.
        Returns:
        true if this node has children, false else
      • getChildren

        TreeNode[] getChildren()
        Returns the children.
        Returns:
        the children (may be null)
      • getImage

        org.eclipse.swt.graphics.Image getImage()
        Returns the display image.
        Returns:
        the display image (may be null)
      • getText

        abstract java.lang.String getText()
        Returns the display text.
        Returns:
        the display text
      • supportedInsertionPoint

        abstract TreeNode.InsertionPoint supportedInsertionPoint​(TreeNode.Insertable insertable)
        Returns the supported insertion point within the tree for insertable.
        Parameters:
        insertable - the element to be inserted
        Returns:
        the supported rule insertion point