Class VFilterSelect.SuggestionMenu

  • All Implemented Interfaces:
    com.google.gwt.event.dom.client.LoadHandler, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.PopupListener, SubPartAware, EventListener
    Enclosing class:
    VFilterSelect

    public class VFilterSelect.SuggestionMenu
    extends MenuBar
    implements SubPartAware, com.google.gwt.event.dom.client.LoadHandler
    The menu where the suggestions are rendered.
    • Method Detail

      • fixHeightTo

        public void fixHeightTo​(int pageItemsCount)
        Fixes menus height to use same space as full page would use. Needed to avoid height changes when quickly "scrolling" to last page.
      • doSelectedItemAction

        public void doSelectedItemAction()
        Send the current selection to the server. Triggered when a selection is made or on a blur event.
      • doPostFilterSelectedItemAction

        public void doPostFilterSelectedItemAction()
        Triggered after a selection has been made.
      • onLoad

        public void onLoad​(com.google.gwt.event.dom.client.LoadEvent event)
        Specified by:
        onLoad in interface com.google.gwt.event.dom.client.LoadHandler
      • isScrollActive

        public boolean isScrollActive()
        Returns true if the scroll is active on the menu element or if the menu currently displays the last page with less items then the maximum visibility (in which case the scroll is not active, but the scroll is active for any other page in general).
        Overrides:
        isScrollActive in class MenuBar
        Since:
        7.2.6