Class RibbonGroup

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class RibbonGroup extends JPanel
RibbonGroup is a JPanel with actionable components : JButton, JCheckBox and ToggleButton. You can keep control of these components by using the addXXX() methods and act accordingly depending of application state or events. This is used by components who want to reflect their state in the ribbon.
See Also:
  • Field Details

  • Constructor Details

    • RibbonGroup

      public RibbonGroup(String title)
  • Method Details

    • addCheckBox

      public JCheckBox addCheckBox(AbstractRibbonAction action)
      Warning using this component. Toggle and checkbox should update global configuration used by a displayed components of the application. Also pay attention that changing the state of the configuration other than with this toggle should be reflected in the ribbon's component.
      Parameters:
      action - the action to perform
    • addButton

      public void addButton(AbstractRibbonAction action, int size)
    • addToggle

      public void addToggle(AbstractRibbonAction action, int size)
      Warning using this component. Toggle and checkbox should update global configuration used by a displayed components of the application. Also pay attention that changing the state of the configuration other than with this toggle should be reflected in the ribbon's component.
      Parameters:
      action - the action to perform
      size - SMALL or LARGE
    • initialize

      protected void initialize()
    • getPnlCommands

      protected JPanel getPnlCommands()
    • getPnlTitle

      protected JPanel getPnlTitle()
    • getLblTitle

      protected JLabel getLblTitle()