Class VFilterSelect.SuggestionPopup

  • All Implemented Interfaces:
    com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, 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.EventHandler, 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.PopupPanel.PositionCallback, com.google.gwt.user.client.ui.SourcesPopupEvents, Iterable<com.google.gwt.user.client.ui.Widget>
    Enclosing class:
    VFilterSelect

    public class VFilterSelect.SuggestionPopup
    extends VOverlay
    implements com.google.gwt.user.client.ui.PopupPanel.PositionCallback, com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
    Represents the popup box with the selection options. Wraps a suggestion menu.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel

        com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

        com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
    • Method Detail

      • onLoad

        protected void onLoad()
        Overrides:
        onLoad in class com.google.gwt.user.client.ui.Widget
      • onUnload

        protected void onUnload()
        Overrides:
        onUnload in class com.google.gwt.user.client.ui.PopupPanel
      • showSuggestions

        public void showSuggestions​(Collection<VFilterSelect.FilterSelectSuggestion> currentSuggestions,
                                    int currentPage,
                                    int totalSuggestions)
        Shows the popup where the user can see the filtered options
        Parameters:
        currentSuggestions - The filtered suggestions
        currentPage - The current page number
        totalSuggestions - The total amount of suggestions
      • selectNextItem

        public void selectNextItem()
        Selects the next item in the filtered selections
      • selectPrevItem

        public void selectPrevItem()
        Selects the previous item in the filtered selections
      • selectFirstItem

        public void selectFirstItem()
        Select the first item of the suggestions list popup.
        Since:
        7.2.6
      • selectLastItem

        public void selectLastItem()
        Select the last item of the suggestions list popup.
        Since:
        7.2.6
      • onBrowserEvent

        public void onBrowserEvent​(com.google.gwt.user.client.Event event)
        Specified by:
        onBrowserEvent in interface com.google.gwt.user.client.EventListener
        Overrides:
        onBrowserEvent in class com.google.gwt.user.client.ui.Widget
      • onPreviewNativeEvent

        protected void onPreviewNativeEvent​(com.google.gwt.user.client.Event.NativePreviewEvent event)
        Overrides:
        onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanel
      • setPagingEnabled

        public void setPagingEnabled​(boolean paging)
        Should paging be enabled. If paging is enabled then only a certain amount of items are visible at a time and a scrollbar or buttons are visible to change page. If paging is turned of then all options are rendered into the popup menu.
        Parameters:
        paging - Should the paging be turned on?
      • setPosition

        public void setPosition​(int offsetWidth,
                                int offsetHeight)
        Specified by:
        setPosition in interface com.google.gwt.user.client.ui.PopupPanel.PositionCallback
      • isJustClosed

        public boolean isJustClosed()
        Was the popup just closed?
        Returns:
        true if popup was just closed
      • onClose

        public void onClose​(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
        Specified by:
        onClose in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>
        Overrides:
        onClose in class Overlay
      • updateStyleNames

        public void updateStyleNames​(UIDL uidl,
                                     AbstractComponentState componentState)
        Updates style names in suggestion popup to help theme building.
        Parameters:
        uidl - UIDL for the whole combo box
        componentState - shared state of the combo box