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.ResizeAnimation
com.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, setOverlayContainerLabel
center, getOwner, hide, hide, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setPopupPosition, setVisible, setWidth, setZIndex, show, updateShadowSizeAndPosition
addAutoHidePartner, 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, showRelativeTo
add, getWidget, iterator, remove, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public final VComboBox.SuggestionMenu menu
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
protected void onUnload()
onUnload
in class com.google.gwt.user.client.ui.PopupPanel
public 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.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
protected void onPreviewNativeEvent(com.google.gwt.user.client.Event.NativePreviewEvent event)
onPreviewNativeEvent
in class com.google.gwt.user.client.ui.PopupPanel
public 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.PositionCallback
public 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.