Class JRibbonApplicationMenuButton

    • Constructor Detail

      • JRibbonApplicationMenuButton

        public JRibbonApplicationMenuButton​(JRibbon ribbon)
        Constructs a JRibbonApplicationMenuButton specifying the ribbon component it belongs to. If the ribbon's application icon is null an EmptyResizableIcon is used for this button.

        A JRibbonApplicationMenuButton is a JCommandButton.CommandButtonKind.POPUP_ONLY button and uses a custom button display state (see APP_MENU_BUTTON_STATE).

        Parameters:
        ribbon - the ribbon component
    • Method Detail

      • getRibbon

        public JRibbon getRibbon()
        Returns a reference to the application ribbon this application menu button is for.
        Returns:
        the application ribbon
      • setRibbon

        public void setRibbon​(JRibbon ribbon)
        Sets the ribbon this application menu button is created for.
        Parameters:
        ribbon - the application ribbon