Class BasicRibbonTaskToggleButtonUI
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.common.BasicCommandToggleButtonUI
org.pushingpixels.flamingo.internal.ui.ribbon.BasicRibbonTaskToggleButtonUI
Basic UI for toggle button of ribbon tasks
JRibbonTaskToggleButton
.-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
protected void
Installs defaults on the associated command button.protected void
Installs listeners on the associated command button.protected void
paintButtonBackground
(Graphics graphics, Rectangle toFill) Paints the button background.protected void
protected void
Uninstalls listeners from the associated command button.void
update
(Graphics g, JComponent c) Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandToggleButtonUI
createRendererButton, isPaintingSeparators, updatePopupActionIcon
Methods inherited from class org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonUI
configureRenderer, createButtonListener, createPopupActionIcon, createPopupActionListener, getForegroundColor, getIconToPaint, getKeyTipAnchorCenterPoint, getLayoutGap, getLayoutInfo, installComponents, installKeyboardActions, installUI, isPaintingBackground, paint, paintButtonBackground, paintButtonHorizontalSeparator, paintButtonIcon, paintButtonVerticalSeparator, paintPopupActionIcon, processPopupAction, syncDisabledIcon, syncIconDimension, toUseDisabledIcon, unconfigureRenderer, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateBorder, updateCustomDimension
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize
-
Field Details
-
popupListener
-
-
Constructor Details
-
BasicRibbonTaskToggleButtonUI
public BasicRibbonTaskToggleButtonUI()
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()Description copied from class:BasicCommandButtonUI
Installs defaults on the associated command button.- Overrides:
installDefaults
in classBasicCommandButtonUI
-
installListeners
protected void installListeners()Description copied from class:BasicCommandButtonUI
Installs listeners on the associated command button.- Overrides:
installListeners
in classBasicCommandButtonUI
-
uninstallListeners
protected void uninstallListeners()Description copied from class:BasicCommandButtonUI
Uninstalls listeners from the associated command button.- Overrides:
uninstallListeners
in classBasicCommandButtonUI
-
update
- Overrides:
update
in classBasicCommandButtonUI
-
paintText
-
paintButtonBackground
Paints the button background.- Overrides:
paintButtonBackground
in classBasicCommandButtonUI
- Parameters:
graphics
- Graphics context.toFill
- Rectangle to fill.
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicCommandButtonUI
-
getMinimumSize
- Overrides:
getMinimumSize
in classComponentUI
-