Class DOMTreeWithPreview

    • Constructor Detail

      • DOMTreeWithPreview

        public DOMTreeWithPreview()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • setDOM

        public void setDOM​(Node value)
        Sets the DOM node object to display.
        Parameters:
        value - the Node object to display
      • getDOM

        public Node getDOM()
        Returns the DOM node object on display.
        Returns:
        the node object, null if none displayed
      • getTree

        public DOMTree getTree()
        Returns the underlying tree.
        Returns:
        the tree
      • setPreviewVisible

        public void setPreviewVisible​(boolean value)
        Sets whether the preview is visible.
        Parameters:
        value - true if preview to be visible
      • isPreviewVisible

        public boolean isPreviewVisible()
        Returns whether the preview is visible.
        Returns:
        true if preview visible
      • setSplitterPosition

        public void setSplitterPosition​(int value)
        Sets the position of the splitter.
        Parameters:
        value - the position
      • getSplitterPosition

        public int getSplitterPosition()
        Returns the position of the splitter.
        Returns:
        the position
      • getText

        protected String getText​(Node node)
        Returns all the text below the specified node.
        Parameters:
        node - the node to get the text for
      • updatePreview

        protected void updatePreview​(DOMNode selNode)
        Updates the preview of the node's attributes.
        Parameters:
        selNode - the selected node
      • showPopupMenu

        protected void showPopupMenu​(MouseEvent e)
        Shows a popup menu.
        Parameters:
        e - the event that triggered the menu