Top Description Fields Constructors Methods
org.apache.pdfbox.debugger.ui

public final Class TreeViewMenu

extends MenuBase
Class Inheritance
Imports
java.util.Arrays, .List, javax.swing.ButtonGroup, .JMenu, .JRadioButtonMenuItem

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

Modifier and TypeField and Description
private JRadioButtonMenuItem
private static TreeViewMenu
private JRadioButtonMenuItem
private JRadioButtonMenuItem
private static final List<String>
public static final String
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
private
TreeViewMenu()

Constructor.

Method Summary

Modifier and TypeMethod and Description
private JMenu
public static TreeViewMenu

Returns:

TreeViewMenu instance.
getInstance
()

Provides the TreeViewMenu instance.

public String

Returns:

the selection String instance
getTreeViewSelection
()

Provide the current tree view selection.

public static boolean

Returns:

true if the given value is a valid view mode, otherwise false
isValidViewMode
(String
the view mode to be checked
viewMode
)

Checks if the given viewMode value is a valid one.

public void
setTreeViewSelection(String
String instance.
selection
)

Set the tree view selection.

Inherited from org.apache.pdfbox.debugger.ui.MenuBase:
addMenuListenersgetMenusetEnableMenusetMenu

Field Detail

crtItemback to summary
private JRadioButtonMenuItem crtItem
instanceback to summary
private static TreeViewMenu instance
pagesItemback to summary
private JRadioButtonMenuItem pagesItem
structureItemback to summary
private JRadioButtonMenuItem structureItem
validTreeModesback to summary
private static final List<String> validTreeModes
VIEW_CROSS_REF_TABLEback to summary
public static final String VIEW_CROSS_REF_TABLE
VIEW_PAGESback to summary
public static final String VIEW_PAGES
VIEW_STRUCTUREback to summary
public static final String VIEW_STRUCTURE

Constructor Detail

TreeViewMenuback to summary
private TreeViewMenu()

Constructor.

Method Detail

createTreeViewMenuback to summary
private JMenu createTreeViewMenu()
getInstanceback to summary
public static TreeViewMenu getInstance()

Provides the TreeViewMenu instance.

Returns:TreeViewMenu

TreeViewMenu instance.

getTreeViewSelectionback to summary
public String getTreeViewSelection()

Provide the current tree view selection.

Returns:String

the selection String instance

isValidViewModeback to summary
public static boolean isValidViewMode(String viewMode)

Checks if the given viewMode value is a valid one.

Parameters
viewMode:String

the view mode to be checked

Returns:boolean

true if the given value is a valid view mode, otherwise false

setTreeViewSelectionback to summary
public void setTreeViewSelection(String selection)

Set the tree view selection.

Parameters
selection:String

String instance.