Class RenderDestinationMenu

java.lang.Object
org.apache.pdfbox.debugger.ui.RenderDestinationMenu

public final class RenderDestinationMenu extends Object
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 Details

  • Method Details

    • getInstance

      public static RenderDestinationMenu getInstance()
      Provides the RenderDestination instance.
      Returns:
      RenderDestination instance.
    • setRenderDestinationSelection

      public void setRenderDestinationSelection(String selection)
      Set the render destination selection.
      Parameters:
      selection - String instance.
    • isRenderDestinationMenu

      public static boolean isRenderDestinationMenu(String actionCommand)
    • getRenderDestination

      public static org.apache.pdfbox.rendering.RenderDestination getRenderDestination()
    • getRenderDestination

      public static org.apache.pdfbox.rendering.RenderDestination getRenderDestination(String actionCommand)
    • setMenu

      protected void setMenu(JMenu menu)
    • getMenu

      public JMenu 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

      public void addMenuListeners(ActionListener listener)
      Add the ActionListener for the menu items.
      Parameters:
      listener - ActionListener.