|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.swing.plaf.metal
|
Field Summary |
---|
Fields inherited from class javax.swing.plaf.basic.BasicMenuBarUI |
---|
changeListener, containerListener, menuBar |
Constructor Summary | |
---|---|
MetalMenuBarUI()
|
Method Summary | |
---|---|
static ComponentUI |
createUI(JComponent x)
Creates the ComponentUI implementation for the passed
in component. |
void |
installUI(JComponent c)
Configures the specified component appropriate for the metal look and feel. |
void |
uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during installUI . |
void |
update(Graphics g,
JComponent c)
If necessary paints the background of the component, then invokes paint . |
Methods inherited from class javax.swing.plaf.basic.BasicMenuBarUI |
---|
createChangeListener, createContainerListener, getMaximumSize, getMinimumSize, installDefaults, installKeyboardActions, installListeners, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
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 |
Constructor Detail |
---|
public MetalMenuBarUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent x)
ComponentUI
implementation for the passed
in component.
x
- JComponent to create the ComponentUI implementation for
x
NullPointerException
- if x
is nullpublic void installUI(JComponent c)
installUI
in class BasicMenuBarUI
c
- the component where this UI delegate is being installed
NullPointerException
- if c
is null.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
installUI
.
uninstallUI
in class BasicMenuBarUI
c
- the component where this UI delegate is being installed
NullPointerException
- if c
is null.ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
public void update(Graphics g, JComponent c)
paint
.
update
in class ComponentUI
g
- Graphics to paint toc
- JComponent painting on
NullPointerException
- if g
or c
is
nullComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
,
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent)