Class AbstractInfoNode

    • Field Detail

      • m_Label

        protected String m_Label
        the label this info node is for.
      • m_Icon

        protected Icon m_Icon
        the icon to use in the tree.
    • Constructor Detail

      • AbstractInfoNode

        public AbstractInfoNode​(String label)
        Initializes the node.
        Parameters:
        label - the label
    • Method Detail

      • getItem

        public String getItem()
        Returns the item that this info node is for.
        Returns:
        the item
      • toHtml

        protected String toHtml​(String s,
                                int width)
        Breaks up the string into lines and generates valid HTML.
        Parameters:
        s - the string to process
        width - the width in characters when breaking up into lines
        Returns:
        the generated HTML
      • getIconName

        protected abstract String getIconName()
        Returns the name of the icon to use for display in the tree.
        Returns:
        the name (no path)
      • getIcon

        public Icon getIcon()
        Returns the icon to use in the tree.
        Returns:
        the icon