Package org.apache.pdfbox.debugger.ui
Class MenuBase
java.lang.Object
org.apache.pdfbox.debugger.ui.MenuBase
- Direct Known Subclasses:
ImageTypeMenu,PrintDpiMenu,RenderDestinationMenu,RotationMenu,TextStripperMenu,TreeViewMenu,ViewMenu,ZoomMenu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMenuListeners(ActionListener listener) Add the ActionListener for the menu items.getMenu()Provide the JMenu instance of the ZoomMenu.private voidremoveActionListeners(JMenuItem menuItem) voidsetEnableMenu(boolean isEnable) Set if the menu should be enabled or disabled.(package private) final void
-
Field Details
-
Constructor Details
-
MenuBase
MenuBase()
-
-
Method Details
-
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.
-
removeActionListeners
-