Class CmsToolbarPopup

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.EventPreview, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasAnimation, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.SourcesPopupEvents, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>, I_CmsAutoHider

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

      • m_arrow

        protected com.google.gwt.dom.client.Element m_arrow
        The 'arrow-shaped' connector element above the popup.
      • m_button

        protected com.google.gwt.user.client.ui.ButtonBase m_button
        The toolbar button to which this popup belongs.
      • m_isToolbarMode

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

        protected com.google.gwt.dom.client.Element m_baseElement
        The base element of the toolbar button.
    • Constructor Detail

      • CmsToolbarPopup

        public CmsToolbarPopup​(com.google.gwt.user.client.ui.ButtonBase button,
                               boolean toolbarMode,
                               com.google.gwt.dom.client.Element baseElement)
        Creates a new toolbar popup.

        Parameters:
        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.

        Returns:
        the height
      • getAvailableWidth

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

        Returns:
        the width
      • position

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

      • setToolbarMode

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

        Parameters:
        isToolbarMode - the isToolbarMode to set