Package com.jgoodies.looks.plastic
Class PlasticMenuBarUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.MenuBarUI
-
- javax.swing.plaf.basic.BasicMenuBarUI
-
- com.jgoodies.looks.plastic.PlasticMenuBarUI
-
public final class PlasticMenuBarUI extends javax.swing.plaf.basic.BasicMenuBarUI
The JGoodies Plastic look and feel implemenation ofMenuBarUI
. Can handle optionalBorder
types as specified by theBorderStyle
orHeaderStyle
client properties.- Version:
- $Revision: 1.9 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.beans.PropertyChangeListener
listener
-
Constructor Summary
Constructors Constructor Description PlasticMenuBarUI()
-
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-dependentBorderStyle
or a look-independentHeaderStyle
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
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicMenuBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classjavax.swing.plaf.basic.BasicMenuBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in classjavax.swing.plaf.basic.BasicMenuBarUI
-
createBorderStyleListener
private java.beans.PropertyChangeListener createBorderStyleListener()
-
installSpecialBorder
public void installSpecialBorder()
Installs a special border, if either a look-dependentBorderStyle
or a look-independentHeaderStyle
has been specified. A look specificBorderStyle
shadows aHeaderStyle
.We recommend to specify a
HeaderStyle
.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
update
in classjavax.swing.plaf.ComponentUI
-
is3D
private boolean is3D()
Checks and answers if we should add a pseudo 3D effect.
-
-