Package org.apache.pdfbox.debugger.ui
Class RenderDestinationMenu
java.lang.Object
org.apache.pdfbox.debugger.ui.RenderDestinationMenu
- 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMenuListeners(ActionListener listener) Add the ActionListener for the menu items.static RenderDestinationMenuProvides the RenderDestination instance.getMenu()Provide the JMenu instance of the ZoomMenu.static org.apache.pdfbox.rendering.RenderDestinationstatic org.apache.pdfbox.rendering.RenderDestinationgetRenderDestination(String actionCommand) static booleanisRenderDestinationMenu(String actionCommand) voidsetEnableMenu(boolean isEnable) Set if the menu should be enabled or disabled.protected voidvoidsetRenderDestinationSelection(String selection) Set the render destination selection.
-
Field Details
-
RENDER_DESTINATION_EXPORT
- See Also:
-
RENDER_DESTINATION_PRINT
- See Also:
-
RENDER_DESTINATION_VIEW
- See Also:
-
-
Method Details
-
getInstance
Provides the RenderDestination instance.- Returns:
- RenderDestination instance.
-
setRenderDestinationSelection
Set the render destination selection.- Parameters:
selection- String instance.
-
isRenderDestinationMenu
-
getRenderDestination
public static org.apache.pdfbox.rendering.RenderDestination getRenderDestination() -
getRenderDestination
public static org.apache.pdfbox.rendering.RenderDestination getRenderDestination(String actionCommand) -
setMenu
-
getMenu
Provide the JMenu instance of the ZoomMenu.- Returns:
- JMenu instance.
-
setEnableMenu
public void setEnableMenu(boolean isEnable) Set if the menu should be enabled or disabled.- Parameters:
isEnable- boolean instance.
-
addMenuListeners
Add the ActionListener for the menu items.- Parameters:
listener- ActionListener.
-