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 TypeMethodDescriptionvoid
addMenuListeners
(ActionListener listener) Add the ActionListener for the menuitems.static RenderDestinationMenu
Provides the RenderDestination instance.getMenu()
Provide the JMenu instance of the ZoomMenu.static org.apache.pdfbox.rendering.RenderDestination
static org.apache.pdfbox.rendering.RenderDestination
getRenderDestination
(String actionCommand) static boolean
isRenderDestinationMenu
(String actionCommand) void
setEnableMenu
(boolean isEnable) Set if the menu should be enabled or disabled.protected void
void
setRenderDestinationSelection
(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 menuitems.- Parameters:
listener
- ActionListener.
-