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
abstract class MenuBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JMenumenu
-
Constructor Summary
Constructors Constructor Description MenuBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMenuListeners(java.awt.event.ActionListener listener)Add the ActionListener for the menu items.javax.swing.JMenugetMenu()Provide the JMenu instance of the ZoomMenu.private voidremoveActionListeners(javax.swing.JMenuItem menuItem)voidsetEnableMenu(boolean isEnable)Set if the menu should be enabled or disabled.(package private) voidsetMenu(javax.swing.JMenu menu)
-
-
-
Method Detail
-
setMenu
final void setMenu(javax.swing.JMenu menu)
-
getMenu
public javax.swing.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(java.awt.event.ActionListener listener)
Add the ActionListener for the menu items.- Parameters:
listener- ActionListener.
-
removeActionListeners
private void removeActionListeners(javax.swing.JMenuItem menuItem)
-
-