Class BasicRibbonApplicationMenuButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
org.pushingpixels.flamingo.internal.ui.common.CommandButtonUI
org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
org.pushingpixels.flamingo.internal.ui.ribbon.appmenu.BasicRibbonApplicationMenuButtonUI
Basic UI for ribbon application menu button
JRibbonApplicationMenuButton
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRibbonApplicationMenuButton
The associated application menu button.Fields inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
basicPopupButtonListener, buttonRendererPane, commandButton, disposePopupsActionListener, DONT_DISPOSE_POPUPS, EMULATE_SQUARE_BUTTON, isUnderMouse, layoutInfo, layoutManager, popupActionIcon, popupActionListener, propertyChangeListener, rendererButton, rendererSeparator
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aBasicRibbonApplicationMenuButtonUI
specifying theJRibbon
the button UI is created for. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
static ComponentUI
createUI
(JComponent component) Creates a UI delegate for aJRibbonApplicationMenuButton
.Returns the ribbon reference this button UI is created for.protected void
Installs subcomponents on the associated command button.protected void
Installs defaults on the associated command button.void
void
paint
(Graphics g, JComponent c) protected void
paintButtonBackground
(Graphics graphics, Rectangle toFill) Paints the button background.protected void
Sets the ribbon this button UI is created for.protected void
Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
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
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize
-
Field Details
-
applicationMenuButton
The associated application menu button.
-
-
Constructor Details
-
BasicRibbonApplicationMenuButtonUI
Constructs aBasicRibbonApplicationMenuButtonUI
specifying theJRibbon
the button UI is created for.- Parameters:
ribbon
- the ribbon
-
-
Method Details
-
createUI
Creates a UI delegate for aJRibbonApplicationMenuButton
. TheJRibbon
the menu button belongs to is required in order to create this UI.The
component
may be a supported object instance which is aJRibbon
or has a reference to the applicationJRibbon
.- Parameters:
component
- aJRibbon
to be used as criteria for creating the UI for a newBasicRibbonApplicationMenuButtonUI
- Throws:
IllegalArgumentException
- ifcomponent
is not aJRibbon
- See Also:
-
getRibbon
Returns the ribbon reference this button UI is created for.- Returns:
- the ribbon reference
-
setRibbon
Sets the ribbon this button UI is created for.- Parameters:
ribbon
- the ribbon
-
installUI
- Overrides:
installUI
in classBasicCommandButtonUI
-
installDefaults
protected void installDefaults()Description copied from class:BasicCommandButtonUI
Installs defaults on the associated command button.- Overrides:
installDefaults
in classBasicCommandButtonUI
-
configureRenderer
protected void configureRenderer()- Overrides:
configureRenderer
in classBasicCommandButtonUI
-
unconfigureRenderer
protected void unconfigureRenderer()- Overrides:
unconfigureRenderer
in classBasicCommandButtonUI
-
installComponents
protected void installComponents()Description copied from class:BasicCommandButtonUI
Installs subcomponents on the associated command button.- Overrides:
installComponents
in classBasicCommandButtonUI
-
paint
- Overrides:
paint
in classBasicCommandButtonUI
-
paintButtonBackground
Paints the button background.- Overrides:
paintButtonBackground
in classBasicCommandButtonUI
- Parameters:
graphics
- Graphics context.toFill
- Rectangle to fill.
-