public class BasicRibbonApplicationMenuButtonUI extends BasicCommandButtonUI
JRibbonApplicationMenuButton.| Modifier and Type | Field | 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 | Description |
|---|---|
BasicRibbonApplicationMenuButtonUI(JRibbon ribbon) |
Constructs a
BasicRibbonApplicationMenuButtonUI specifying
the JRibbon the button UI is created for. |
| Modifier and Type | Method | 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, updatePopupActionIconprotected 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 BasicRibbonApplicationMenuButtonUIjava.lang.IllegalArgumentException - if component is not a JRibbonComponentUI.createUI(javax.swing.JComponent)public JRibbon getRibbon()
protected void setRibbon(JRibbon ribbon)
ribbon - the ribbonpublic void installUI(javax.swing.JComponent c)
installUI in class BasicCommandButtonUIprotected void installDefaults()
BasicCommandButtonUIinstallDefaults in class BasicCommandButtonUIprotected void configureRenderer()
configureRenderer in class BasicCommandButtonUIprotected void unconfigureRenderer()
unconfigureRenderer in class BasicCommandButtonUIprotected void installComponents()
BasicCommandButtonUIinstallComponents in class BasicCommandButtonUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class BasicCommandButtonUIprotected void paintButtonBackground(java.awt.Graphics graphics,
java.awt.Rectangle toFill)
paintButtonBackground in class BasicCommandButtonUIgraphics - Graphics context.toFill - Rectangle to fill.