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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classEvent listener to handle global ribbon events.private static classprivate static classprivate static classprivate static classstatic classprivate static classprivate static classprivate classLayout for the ribbon band. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JCommandButtonThe button for collapsed state.protected JCommandButtonThe band expand button.protected Commandprivate MouseListenerMouse listener on the associated ribbon band.private Dimensionprivate PropertyChangeListenerListens to property changes on the associated ribbon band.protected 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.private voidprivate voidprotected 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. -
collapsedButton
The button for collapsed state. -
expandButton
The band expand button. Is visible when theAbstractRibbonBand.getExpandCommandListener()of the associated ribbon band is notnull. -
expandCommand
-
popupContentSize
-
mouseListener
Mouse listener on the associated ribbon band. -
propertyChangeListener
Listens to property changes on the associated ribbon band.
-
-
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. -
syncExpandButton
private void syncExpandButton() -
syncCollapsedButton
private void syncCollapsedButton() -
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
-