Class JRibbonBand

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class JRibbonBand extends AbstractRibbonBand<JBandControlPanel>
Ribbon band component. Can host three types of content:

Command buttons are added with associated RibbonElementPriority. The higher the priority, the longer the button "stays" in the CommandButtonDisplayState.BIG or CommandButtonDisplayState.MEDIUM state - depending on the available resize policies.

Wrapped components can span one or multiple rows. Use the addRibbonComponent(JRibbonComponent, int) API to add a wrapped component that spans more than one row.

Once a ribbon gallery is added with addRibbonGallery(String, List, Map, int, int, RibbonElementPriority) , you can use the following APIs to configure the content and behavior of that gallery:

A ribbon band can have multiple visual groups separated with vertical separator lines. To start a new unnamed group use the startGroup() API. To start a new named group use the startGroup(String) API. Unnamed groups will have three rows of controls. Named groups will have two rows of controls, with the top row showing the group title.

See Also: