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