abstract class MenuBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.swing.JMenu |
menu |
Constructor and Description |
---|
MenuBase() |
Modifier and Type | Method and Description |
---|---|
void |
addMenuListeners(java.awt.event.ActionListener listener)
Add the ActionListener for the menuitems.
|
javax.swing.JMenu |
getMenu()
Provide the JMenu instance of the ZoomMenu.
|
private void |
removeActionListeners(javax.swing.JMenuItem menuItem) |
void |
setEnableMenu(boolean isEnable)
Set if the menu should be enabled or disabled.
|
protected void |
setMenu(javax.swing.JMenu menu) |
protected void setMenu(javax.swing.JMenu menu)
public javax.swing.JMenu getMenu()
public void setEnableMenu(boolean isEnable)
isEnable
- boolean instance.public void addMenuListeners(java.awt.event.ActionListener listener)
listener
- ActionListener.private void removeActionListeners(javax.swing.JMenuItem menuItem)