Package org.apache.pdfbox.debugger.ui
Class TreeViewMenu
java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
org.apache.pdfbox.debugger.ui.TreeViewMenu
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 Summary
FieldsModifier and TypeFieldDescriptionprivate JRadioButtonMenuItemprivate static TreeViewMenuprivate JRadioButtonMenuItemprivate JRadioButtonMenuItemstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate JMenustatic TreeViewMenuProvides the TreeViewMenu instance.Provide the current tree view selection.static booleanisValidViewMode(String viewMode) Checks if the given viewMode value is a valid one.voidsetTreeViewSelection(String selection) Set the tree view selection.Methods inherited from class org.apache.pdfbox.debugger.ui.MenuBase
addMenuListeners, getMenu, setEnableMenu, setMenu
-
Field Details
-
VIEW_PAGES
- See Also:
-
VIEW_STRUCTURE
- See Also:
-
VIEW_CROSS_REF_TABLE
- See Also:
-
validTreeModes
-
instance
-
pagesItem
-
structureItem
-
crtItem
-
-
Constructor Details
-
TreeViewMenu
private TreeViewMenu()Constructor.
-
-
Method Details
-
getInstance
Provides the TreeViewMenu instance.- Returns:
- TreeViewMenu instance.
-
setTreeViewSelection
Set the tree view selection.- Parameters:
selection- String instance.
-
getTreeViewSelection
Provide the current tree view selection.- Returns:
- the selection String instance
-
isValidViewMode
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
-