Class BasicRibbonBandUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.pushingpixels.radiance.component.internal.ui.ribbon.RibbonBandUI
org.pushingpixels.radiance.component.internal.ui.ribbon.BasicRibbonBandUI
- Direct Known Subclasses:
RadianceRibbonBandUI
Basic UI for ribbon band
JRibbonBand.- Author:
- Kirill Grouchnikov, Matt Nathan
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JCommandButtonThe band expand button.protected Commandprotected AbstractRibbonBandThe associated ribbon band. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract JCommandButtonCreates the expand button for the associated ribbon band.protected abstract CommandcreateExpandCommand(ComponentOrientation componentOrientation) protected LayoutManagerInvoked byinstallUIto create a layout manager object to manage the ribbon band.intprotected voidInstalls subcomponents on the associated ribbon band.protected voidInstalls default parameters on the associated ribbon band.protected voidInstalls listeners on the associated ribbon band.voidvoidpaint(Graphics g, JComponent c) protected abstract voidpaintBandTitle(Graphics g, Rectangle titleRectangle, String title) Paints band title pane.protected abstract voidpaintBandTrailingSeparator(Graphics graphics, Rectangle toFill) Paints band background.protected voidUninstalls components from the associated ribbon band.protected voidUninstalls default parameters from the associated ribbon band.protected voidUninstalls listeners from the associated ribbon band.voidMethods inherited from class RibbonBandUI
getBandTitleHeightMethods inherited from class ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
-
Field Details
-
ribbonBand
The associated ribbon band. -
expandButton
The band expand button. Is visible when theAbstractRibbonBand.getExpandCommandListener()of the associated ribbon band is notnull. -
expandCommand
-
-
Constructor Details
-
BasicRibbonBandUI
public BasicRibbonBandUI()
-
-
Method Details
-
installUI
- Overrides:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
installDefaults
protected void installDefaults()Installs default parameters on the associated ribbon band. -
installComponents
protected void installComponents()Installs subcomponents on the associated ribbon band. -
createExpandButton
Creates the expand button for the associated ribbon band.- Returns:
- Expand button for the associated ribbon band.
-
createExpandCommand
-
installListeners
protected void installListeners()Installs listeners on the associated ribbon band. -
uninstallDefaults
protected void uninstallDefaults()Uninstalls default parameters from the associated ribbon band. -
uninstallComponents
protected void uninstallComponents()Uninstalls components from the associated ribbon band. -
uninstallListeners
protected void uninstallListeners()Uninstalls listeners from the associated ribbon band. -
createLayoutManager
Invoked byinstallUIto create a layout manager object to manage the ribbon band.- Returns:
- a layout manager object
-
paint
- Overrides:
paintin classComponentUI
-
paintBandTitle
-
paintBandTrailingSeparator
-
getPreferredCollapsedWidth
public int getPreferredCollapsedWidth()- Specified by:
getPreferredCollapsedWidthin classRibbonBandUI
-