public class VComboBox.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>
Overlay.PositionAndSize, Overlay.ResizeAnimationcom.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback| Modifier and Type | Field and Description |
|---|---|
VComboBox.SuggestionMenu |
menu
For internal use only.
|
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW| Modifier and Type | Method and Description |
|---|---|
boolean |
isJustClosed()
Was the popup just closed?
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event) |
protected void |
onLoad() |
protected void |
onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event) |
protected void |
onUnload() |
void |
selectFirstItem()
Select the first item of the suggestions list popup.
|
void |
selectLastItem()
Select the last item of the suggestions list popup.
|
void |
selectNextItem()
Selects the next item in the filtered selections.
|
void |
selectPrevItem()
Selects the previous item in the filtered selections.
|
void |
setPagingEnabled(boolean paging)
Should paging be enabled.
|
void |
setPosition(int offsetWidth,
int offsetHeight) |
void |
showSuggestions(int currentPage)
Shows the popup where the user can see the filtered options that have
been set with a call to
VComboBox.SuggestionMenu.setSuggestions(Collection). |
void |
updateStyleNames(AbstractComponentState componentState)
Updates style names in suggestion popup to help theme building.
|
getApplicationConnection, getOverlayContainer, getOverlayContainer, setOverlayContainerLabelcenter, getOwner, hide, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setVisible, setWidth, setZIndex, show, updateShadowSizeAndPositionaddAutoHidePartner, addCloseHandler, addPopupListener, getAnimationType, getContainerElement, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setWidget, showRelativeToadd, getWidget, iterator, remove, setWidgetadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic final VComboBox.SuggestionMenu menu
protected void onLoad()
onLoad in class com.google.gwt.user.client.ui.Widgetprotected void onUnload()
onUnload in class com.google.gwt.user.client.ui.PopupPanelpublic void showSuggestions(int currentPage)
VComboBox.SuggestionMenu.setSuggestions(Collection).currentPage - The current page numberpublic void selectNextItem()
public void selectPrevItem()
public void selectFirstItem()
public void selectLastItem()
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetprotected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
onPreviewNativeEvent in class com.google.gwt.user.client.ui.PopupPanelpublic void setPagingEnabled(boolean paging)
paging - Should the paging be turned on?public void setPosition(int offsetWidth,
int offsetHeight)
setPosition in interface com.google.gwt.user.client.ui.PopupPanel.PositionCallbackpublic boolean isJustClosed()
public void onClose(com.google.gwt.event.logical.shared.CloseEvent<com.google.gwt.user.client.ui.PopupPanel> event)
onClose in interface com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>public void updateStyleNames(AbstractComponentState componentState)
componentState - shared state of the combo boxCopyright © 2018 Vaadin Ltd. All rights reserved.