Class MenuBase

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JMenu menu  
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuBase()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • menu

        private javax.swing.JMenu menu
    • Constructor Detail

      • MenuBase

        MenuBase()
    • Method Detail

      • setMenu

        protected 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 menuitems.
        Parameters:
        listener - ActionListener.
      • removeActionListeners

        private void removeActionListeners​(javax.swing.JMenuItem menuItem)