public final class PlasticMenuBarUI
extends javax.swing.plaf.basic.BasicMenuBarUI
MenuBarUI.
Can handle optional Border types as specified by the
BorderStyle or HeaderStyle client properties.| Modifier and Type | Field and Description |
|---|---|
private java.beans.PropertyChangeListener |
listener |
| Constructor and Description |
|---|
PlasticMenuBarUI() |
| Modifier and Type | Method and 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) |
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, uninstallDefaults, uninstallKeyboardActions, uninstallUIpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicMenuBarUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicMenuBarUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicMenuBarUIprivate java.beans.PropertyChangeListener createBorderStyleListener()
public void installSpecialBorder()
BorderStyle
or a look-independent HeaderStyle has been specified.
A look specific BorderStyle shadows a HeaderStyle.
We recommend to specify a HeaderStyle.
public void update(java.awt.Graphics g,
javax.swing.JComponent c)
update in class javax.swing.plaf.ComponentUIprivate boolean is3D()