Class BasicRibbonGalleryUI

    • Constructor Detail

      • BasicRibbonGalleryUI

        public BasicRibbonGalleryUI()
    • Method Detail

      • installComponents

        protected void installComponents()
        Installs subcomponents on the associated ribbon gallery.
      • createScrollDownButton

        protected JCommandButton createScrollDownButton()
        Creates the scroll-down button.
        Returns:
        Scroll-down button.
      • createScrollUpButton

        protected JCommandButton createScrollUpButton()
        Creates the scroll-up button.
        Returns:
        Scroll-up button.
      • uninstallComponents

        protected void uninstallComponents()
        Uninstalls subcomponents from the associated ribbon gallery.
      • installDefaults

        protected void installDefaults()
        Installs defaults on the associated ribbon gallery.
      • uninstallDefaults

        protected void uninstallDefaults()
        Uninstalls defaults from the associated ribbon gallery.
      • installListeners

        protected void installListeners()
        Installs listeners on the associated ribbon gallery.
      • uninstallListeners

        protected void uninstallListeners()
        Uninstalls listeners from the associated ribbon gallery.
      • createLayoutManager

        protected LayoutManager createLayoutManager()
        Invoked by installUI to create a layout manager object to manage the JCommandButtonStrip.
        Returns:
        a layout manager object
      • paintRibbonGalleryBorder

        protected void paintRibbonGalleryBorder​(Graphics graphics)
        Paints ribbon gallery border.
        Parameters:
        graphics - Graphics context.
      • getLayoutGap

        protected int getLayoutGap()
        Returns the layout gap for the controls in the associated ribbon gallery.
        Returns:
        The layout gap for the controls in the associated ribbon gallery.
      • getPreferredWidth

        public int getPreferredWidth​(int buttonCount,
                                     int availableHeight)
        Returns the preferred width of the ribbon gallery for the specified parameters.
        Parameters:
        buttonCount - Button count.
        availableHeight - Available height in pixels.
        Returns:
        The preferred width of the ribbon gallery for the specified parameters.
      • scrollOneRowDown

        protected void scrollOneRowDown()
        Scrolls the contents of this ribbon gallery one row down.
      • scrollOneRowUp

        protected void scrollOneRowUp()
        Scrolls the contents of this ribbon gallery one row up.
      • scrollToSelected

        protected void scrollToSelected()
        Scrolls the contents of this ribbon gallery to reveal the currently selected button.
      • syncExpandKeyTip

        protected void syncExpandKeyTip()