public class BasicRibbonApplicationMenuButtonUI extends BasicCommandButtonUI
JRibbonApplicationMenuButton
.Modifier and Type | Field and Description |
---|---|
protected JRibbonApplicationMenuButton |
applicationMenuButton
The associated application menu button.
|
basicPopupButtonListener, buttonRendererPane, commandButton, disposePopupsActionListener, DONT_DISPOSE_POPUPS, EMULATE_SQUARE_BUTTON, isUnderMouse, layoutInfo, layoutManager, popupActionIcon, popupActionListener, propertyChangeListener, rendererButton, rendererSeparator
Constructor and Description |
---|
BasicRibbonApplicationMenuButtonUI(JRibbon ribbon)
Constructs a
BasicRibbonApplicationMenuButtonUI specifying
the JRibbon the button UI is created for. |
Modifier and Type | Method and Description |
---|---|
protected void |
configureRenderer() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent component)
Creates a UI delegate for a
JRibbonApplicationMenuButton . |
JRibbon |
getRibbon()
Returns the ribbon reference this button UI is created for.
|
protected void |
installComponents()
Installs subcomponents on the associated command button.
|
protected void |
installDefaults()
Installs defaults on the associated command button.
|
void |
installUI(javax.swing.JComponent c) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
protected void |
paintButtonBackground(java.awt.Graphics graphics,
java.awt.Rectangle toFill)
Paints the button background.
|
protected void |
setRibbon(JRibbon ribbon)
Sets the ribbon this button UI is created for.
|
protected void |
unconfigureRenderer() |
createButtonListener, createPopupActionIcon, createPopupActionListener, createRendererButton, getForegroundColor, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, getPreferredSize, installKeyboardActions, installListeners, isPaintingBackground, isPaintingSeparators, paintButtonBackground, paintButtonHorizontalSeparator, paintButtonIcon, paintButtonVerticalSeparator, paintPopupActionIcon, processPopupAction, syncDisabledIcon, syncIconDimension, toUseDisabledIcon, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, updateBorder, updateCustomDimension, updatePopupActionIcon
protected JRibbonApplicationMenuButton applicationMenuButton
public BasicRibbonApplicationMenuButtonUI(JRibbon ribbon)
BasicRibbonApplicationMenuButtonUI
specifying
the JRibbon
the button UI is created for.ribbon
- the ribbonpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent component)
JRibbonApplicationMenuButton
. The
JRibbon
the menu button belongs to is required in order to
create this UI.
The component
may be a supported object instance which is a
JRibbon
or has a reference to the application
JRibbon
.
component
- a JRibbon
to be used as criteria for creating the
UI for a new BasicRibbonApplicationMenuButtonUI
java.lang.IllegalArgumentException
- if component
is not a JRibbon
ComponentUI.createUI(javax.swing.JComponent)
public JRibbon getRibbon()
protected void setRibbon(JRibbon ribbon)
ribbon
- the ribbonpublic void installUI(javax.swing.JComponent c)
installUI
in class BasicCommandButtonUI
protected void installDefaults()
BasicCommandButtonUI
installDefaults
in class BasicCommandButtonUI
protected void configureRenderer()
configureRenderer
in class BasicCommandButtonUI
protected void unconfigureRenderer()
unconfigureRenderer
in class BasicCommandButtonUI
protected void installComponents()
BasicCommandButtonUI
installComponents
in class BasicCommandButtonUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class BasicCommandButtonUI
protected void paintButtonBackground(java.awt.Graphics graphics, java.awt.Rectangle toFill)
paintButtonBackground
in class BasicCommandButtonUI
graphics
- Graphics context.toFill
- Rectangle to fill.