Class CmsToolbarPopup

  • All Implemented Interfaces:,<>,,,,,,,,,,,, java.lang.Iterable<>, I_CmsAutoHider

    public class CmsToolbarPopup
    extends CmsPopup
    A popup which can be displayed below buttons in a toolbar.
    • Field Detail

      • m_arrow

        protected m_arrow
        The 'arrow-shaped' connector element above the popup.
      • m_button

        protected m_button
        The toolbar button to which this popup belongs.
      • m_isToolbarMode

        protected boolean m_isToolbarMode
        The 'toolbar mode' flag.
      • m_baseElement

        protected m_baseElement
        The base element of the toolbar button.
    • Constructor Detail

      • CmsToolbarPopup

        public CmsToolbarPopup​( button,
                               boolean toolbarMode,
        Creates a new toolbar popup.

        button - the toolbar button to which this popup belongs
        toolbarMode - the toolbar mode flag
        baseElement - the base element of the toolbar button
    • Method Detail

      • getAvailableHeight

        public static int getAvailableHeight()
        Calculates the popup height to use.

        the height
      • getAvailableWidth

        public static int getAvailableWidth()
        Calculates the popup width to use.

        the width
      • position

        public void position()
        Positions the popup below the toolbar button.

      • positionDeferred

        public void positionDeferred()
        Defers execution of the position() method.

      • setToolbarMode

        public void setToolbarMode​(boolean isToolbarMode)
        Sets the isToolbarMode.

        isToolbarMode - the isToolbarMode to set