Class TreeViewMenu

java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
org.apache.pdfbox.debugger.ui.TreeViewMenu

public final class TreeViewMenu extends MenuBase
A singleton class that provides tree view menu which can be used to switch the kind of tree view. To act upon the menu item selection user of the class must add ActionListener which will check for the action command and act accordingly.
  • Field Details

  • Constructor Details

    • TreeViewMenu

      private TreeViewMenu()
      Constructor.
  • Method Details

    • getInstance

      public static TreeViewMenu getInstance()
      Provides the TreeViewMenu instance.
      Returns:
      TreeViewMenu instance.
    • setTreeViewSelection

      public void setTreeViewSelection(String selection)
      Set the tree view selection.
      Parameters:
      selection - String instance.
    • getTreeViewSelection

      public String getTreeViewSelection()
      Provide the current tree view selection.
      Returns:
      the selection String instance
    • isValidViewMode

      public static boolean isValidViewMode(String viewMode)
      Checks if the given viewMode value is a valid one.
      Parameters:
      viewMode - the view mode to be checked
      Returns:
      true if the given value is a valid view mode, otherwise false
    • createTreeViewMenu

      private JMenu createTreeViewMenu()