Class BasicCommandPopupMenuUI.ScrollableCommandButtonPanel

    • Field Detail

      • maxDimension

        protected Dimension maxDimension
        Maximum dimension of this popup gallery.
      • buttonPanel

        protected JCommandButtonPanel buttonPanel
        The internal panel that hosts the icon command buttons. Is hosted in the scroll.
      • maxVisibleButtonRows

        protected int maxVisibleButtonRows
        The maximum number of visible button rows.
    • Constructor Detail

      • ScrollableCommandButtonPanel

        public ScrollableCommandButtonPanel​(JCommandButtonPanel iconPanel,
                                            int maxButtonColumns,
                                            int maxVisibleButtonRows)
        Creates new a icon popup panel.
        Parameters:
        iconPanel - The internal panel that hosts icon command buttons.
        maxButtonColumns - The maximum number of button columns.
        maxVisibleButtonRows - The maximum number of visible button rows.
    • Method Detail

      • updateMaxDimension

        public void updateMaxDimension()
        Updates the max dimension of this panel. This method is for internal use only.