public class SuggestPopup
extends com.vaadin.client.ui.VOverlay
implements com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.dom.client.DoubleClickHandler, com.google.gwt.event.dom.client.ChangeHandler
Modifier and Type | Class and Description |
---|---|
static interface |
SuggestPopup.SuggestionSelectedListener |
com.vaadin.client.widgets.Overlay.PositionAndSize, com.vaadin.client.widgets.Overlay.ResizeAnimation
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.user.client.ui.ListBox |
choiceList |
static int |
DESCRIPTION_WIDTH |
protected com.vaadin.client.ui.VOverlay |
descriptionPopup |
static int |
HEIGHT |
protected SuggestPopup.SuggestionSelectedListener |
listener |
protected com.google.gwt.user.client.ui.Image |
loadingImage |
protected boolean |
showDescriptions |
protected String |
startOfValue |
protected List<TransportSuggestion> |
suggs |
protected List<TransportSuggestion> |
visibleSuggs |
static int |
WIDTH |
Constructor and Description |
---|
SuggestPopup() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
createChoiceList() |
protected void |
createDescriptionPopup() |
void |
down() |
void |
hide() |
void |
hide(boolean ac) |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
onChange(com.google.gwt.event.dom.client.ChangeEvent event) |
void |
onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) |
void |
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) |
protected void |
populateList() |
void |
select() |
void |
setPopupPosition(int left,
int top) |
void |
setStartOfValue(String startOfValue) |
void |
setSuggestions(List<TransportSuggestion> suggs) |
void |
setSuggestionSelectedListener(SuggestPopup.SuggestionSelectedListener ssl) |
protected void |
startLoading() |
void |
up() |
protected void |
updateDescriptionPopupPosition() |
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabel
center, getOwner, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, 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, onPreviewNativeEvent, onUnload, 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, onLoad, 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
protected com.google.gwt.user.client.ui.ListBox choiceList
protected String startOfValue
protected SuggestPopup.SuggestionSelectedListener listener
protected com.vaadin.client.ui.VOverlay descriptionPopup
protected List<TransportSuggestion> suggs
protected List<TransportSuggestion> visibleSuggs
protected boolean showDescriptions
protected com.google.gwt.user.client.ui.Image loadingImage
public static final int WIDTH
public static final int HEIGHT
public static final int DESCRIPTION_WIDTH
public void setSuggestionSelectedListener(SuggestPopup.SuggestionSelectedListener ssl)
protected void createChoiceList()
protected void startLoading()
public void setSuggestions(List<TransportSuggestion> suggs)
protected void populateList()
public void close()
public void hide()
hide
in class com.vaadin.client.widgets.Overlay
public void hide(boolean ac)
hide
in class com.vaadin.client.widgets.Overlay
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown
in interface com.google.gwt.event.dom.client.KeyDownHandler
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick
in interface com.google.gwt.event.dom.client.DoubleClickHandler
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
public void up()
public void down()
public void select()
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event)
onChange
in interface com.google.gwt.event.dom.client.ChangeHandler
public void setPopupPosition(int left, int top)
setPopupPosition
in class com.vaadin.client.widgets.Overlay
protected void updateDescriptionPopupPosition()
protected void createDescriptionPopup()
public void setStartOfValue(String startOfValue)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.