Class MaterialMenuUI


  • public class MaterialMenuUI
    extends javax.swing.plaf.basic.BasicMenuUI
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicMenuUI

        javax.swing.plaf.basic.BasicMenuUI.ChangeHandler, javax.swing.plaf.basic.BasicMenuUI.MouseInputHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.JMenu menu  
      protected java.awt.event.MouseListener mouseHover  
      • Fields inherited from class javax.swing.plaf.basic.BasicMenuUI

        changeListener, menuListener
      • Fields inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        acceleratorDelimiter, acceleratorFont, acceleratorForeground, acceleratorSelectionForeground, arrowIcon, checkIcon, defaultTextIconGap, disabledForeground, menuDragMouseListener, menuItem, menuKeyListener, mouseInputListener, oldBorderPainted, propertyChangeListener, selectionBackground, selectionForeground
    • Constructor Summary

      Constructors 
      Constructor Description
      MaterialMenuUI()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.event.ChangeListener createChangeListener​(javax.swing.JComponent c)  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      void installUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void uninstallListeners()  
      void uninstallUI​(javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicMenuUI

        createMenuDragMouseListener, createMenuKeyListener, createMenuListener, createMouseInputListener, createPropertyChangeListener, getMaximumSize, getMinimumSize, getPropertyPrefix, installDefaults, installKeyboardActions, installListeners, setupPostTimer, uninstallDefaults, uninstallKeyboardActions
      • Methods inherited from class javax.swing.plaf.basic.BasicMenuItemUI

        doClick, getPath, getPreferredMenuItemSize, getPreferredSize, installComponents, paintBackground, paintMenuItem, paintText, uninstallComponents, update
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
      • Methods inherited from class java.lang.Object

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

      • mouseHover

        protected java.awt.event.MouseListener mouseHover
      • menu

        protected javax.swing.JMenu menu
    • Constructor Detail

      • MaterialMenuUI

        public MaterialMenuUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.basic.BasicMenuItemUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicMenuItemUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicMenuItemUI
      • createChangeListener

        protected javax.swing.event.ChangeListener createChangeListener​(javax.swing.JComponent c)
        Overrides:
        createChangeListener in class javax.swing.plaf.basic.BasicMenuUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicMenuUI