Class BasicBandControlPanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.pushingpixels.flamingo.internal.ui.ribbon.BandControlPanelUI
org.pushingpixels.flamingo.internal.ui.ribbon.BasicBandControlPanelUI
Basic UI for control panel of ribbon band
JBandControlPanel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected ChangeListenerprotected AbstractBandControlPanelThe associated control panel.protected JCommandButtonstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManagerInvoked byinstallUIto create a layout manager object to manage theJBandControlPanel.static ComponentUIintReturns the layout gap for the controls in the associated control panel.protected voidInstalls components on the associated control panel of a ribbon band.protected voidInstalls default parameters on the associated control panel of a ribbon band.protected voidInstalls listeners on the associated control panel of a ribbon band.voidvoidpaint(Graphics g, JComponent c) protected voidpaintBandBackground(Graphics graphics, Rectangle toFill) Paints band background.protected voidprotected voidUninstalls components from the associated control panel of a ribbon band.protected voidUninstalls default parameters from the associated control panel.protected voidUninstalls listeners from the associated control panel of a ribbon band.voidMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update
-
Field Details
-
changeListener
-
controlPanel
The associated control panel. -
dummy
-
TOP_ROW
- See Also:
-
MID_ROW
- See Also:
-
BOTTOM_ROW
- See Also:
-
-
Constructor Details
-
BasicBandControlPanelUI
public BasicBandControlPanelUI()
-
-
Method Details
-
createUI
-
createLayoutManager
Invoked byinstallUIto create a layout manager object to manage theJBandControlPanel.- Returns:
- a layout manager object
-
installListeners
protected void installListeners()Installs listeners on the associated control panel of a ribbon band. -
uninstallListeners
protected void uninstallListeners()Uninstalls listeners from the associated control panel of a ribbon band. -
installComponents
protected void installComponents()Installs components on the associated control panel of a ribbon band. -
uninstallComponents
protected void uninstallComponents()Uninstalls components from the associated control panel of a ribbon band. -
syncGroupHeaders
protected void syncGroupHeaders() -
installUI
- Overrides:
installUIin classComponentUI
-
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
installDefaults
protected void installDefaults()Installs default parameters on the associated control panel of a ribbon band. -
uninstallDefaults
protected void uninstallDefaults()Uninstalls default parameters from the associated control panel. -
paint
- Overrides:
paintin classComponentUI
-
paintBandBackground
Paints band background.- Parameters:
graphics- Graphics context.toFill- Rectangle for the background.
-
getLayoutGap
public int getLayoutGap()Description copied from class:BandControlPanelUIReturns the layout gap for the controls in the associated control panel.- Specified by:
getLayoutGapin classBandControlPanelUI- Returns:
- The layout gap for the controls in the associated control panel.
-