Class TreeNode

  • Direct Known Subclasses:
    RootNode

    public class TreeNode
    extends Object
    Created by bmorrise on 6/27/18.
    • Constructor Detail

      • TreeNode

        public TreeNode()
      • TreeNode

        public TreeNode​(String label,
                        org.eclipse.swt.graphics.Image image,
                        boolean expanded)
    • Method Detail

      • addChild

        public void addChild​(TreeNode treeNode)
      • hasChildren

        public boolean hasChildren()
      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
      • setImage

        public void setImage​(org.eclipse.swt.graphics.Image image)
      • getFont

        public org.eclipse.swt.graphics.Font getFont()
      • setFont

        public void setFont​(org.eclipse.swt.graphics.Font font)
      • getForeground

        public org.eclipse.swt.graphics.Color getForeground()
      • setForeground

        public void setForeground​(org.eclipse.swt.graphics.Color foreground)
      • getBackground

        public org.eclipse.swt.graphics.Color getBackground()
      • setBackground

        public void setBackground​(org.eclipse.swt.graphics.Color background)
      • isExpanded

        public boolean isExpanded()
      • setExpanded

        public void setExpanded​(boolean expanded)
      • removeAll

        public void removeAll()
      • isHidden

        public boolean isHidden()
      • setHidden

        public void setHidden​(boolean hidden)
      • setData

        public void setData​(String key,
                            Object value)
      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)