Class PlasticMenuBarUI


  • public final class PlasticMenuBarUI
    extends javax.swing.plaf.basic.BasicMenuBarUI
    The JGoodies Plastic look and feel implemenation of MenuBarUI. Can handle optional Border types as specified by the BorderStyle or HeaderStyle client properties.
    Version:
    $Revision: 1.9 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.beans.PropertyChangeListener listener  
      • Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI

        changeListener, containerListener, menuBar
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.beans.PropertyChangeListener createBorderStyleListener()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)  
      protected void installDefaults()  
      protected void installListeners()  
      void installSpecialBorder()
      Installs a special border, if either a look-dependent BorderStyle or a look-independent HeaderStyle has been specified.
      private boolean is3D()
      Checks and answers if we should add a pseudo 3D effect.
      protected void uninstallListeners()  
      void update​(java.awt.Graphics g, javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI

        createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

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

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

      • listener

        private java.beans.PropertyChangeListener listener
    • Constructor Detail

      • PlasticMenuBarUI

        public PlasticMenuBarUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent b)
      • installDefaults

        protected void installDefaults()
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicMenuBarUI
      • installListeners

        protected void installListeners()
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicMenuBarUI
      • uninstallListeners

        protected void uninstallListeners()
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicMenuBarUI
      • createBorderStyleListener

        private java.beans.PropertyChangeListener createBorderStyleListener()
      • installSpecialBorder

        public void installSpecialBorder()
        Installs a special border, if either a look-dependent BorderStyle or a look-independent HeaderStyle has been specified. A look specific BorderStyle shadows a HeaderStyle.

        We recommend to specify a HeaderStyle.

      • update

        public void update​(java.awt.Graphics g,
                           javax.swing.JComponent c)
        Overrides:
        update in class javax.swing.plaf.ComponentUI
      • is3D

        private boolean is3D()
        Checks and answers if we should add a pseudo 3D effect.