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

public final Class RenderDestinationMenu

extends MenuBase
Class Inheritance
Imports
javax.swing.ButtonGroup, .JMenu, .JRadioButtonMenuItem, org.apache.pdfbox.rendering.RenderDestination

Author
Tilman Hausherr A singleton class that provides the RenderDestination menu for the menubar. To act upon the menu item selection, the 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 RenderDestinationMenu
private JRadioButtonMenuItem
public static final String
public static final String
public static final String
private JRadioButtonMenuItem

Constructor Summary

AccessConstructor and Description
private
RenderDestinationMenu()

Constructor.

Method Summary

Modifier and TypeMethod and Description
private JMenu
public static RenderDestinationMenu

Returns:

RenderDestination instance.
getInstance
()

Provides the RenderDestination instance.

public static RenderDestination
public static RenderDestination
public static boolean
public void
setRenderDestinationSelection(String
String instance.
selection
)

Set the render destination selection.

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

Field Detail

exportItemback to summary
private JRadioButtonMenuItem exportItem
instanceback to summary
private static RenderDestinationMenu instance
printItemback to summary
private JRadioButtonMenuItem printItem
RENDER_DESTINATION_EXPORTback to summary
public static final String RENDER_DESTINATION_EXPORT
RENDER_DESTINATION_PRINTback to summary
public static final String RENDER_DESTINATION_PRINT
RENDER_DESTINATION_VIEWback to summary
public static final String RENDER_DESTINATION_VIEW
viewItemback to summary
private JRadioButtonMenuItem viewItem

Constructor Detail

RenderDestinationMenuback to summary
private RenderDestinationMenu()

Constructor.

Method Detail

createMenuback to summary
private JMenu createMenu()
getInstanceback to summary
public static RenderDestinationMenu getInstance()

Provides the RenderDestination instance.

Returns:RenderDestinationMenu

RenderDestination instance.

getRenderDestinationback to summary
public static RenderDestination getRenderDestination()
getRenderDestinationback to summary
public static RenderDestination getRenderDestination(String actionCommand)
isRenderDestinationMenuback to summary
public static boolean isRenderDestinationMenu(String actionCommand)
setRenderDestinationSelectionback to summary
public void setRenderDestinationSelection(String selection)

Set the render destination selection.

Parameters
selection:String

String instance.