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.ResizeAnimationcom.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 java.lang.String |
startOfValue |
protected java.util.List<TransportSuggestion> |
suggs |
protected java.util.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(java.lang.String startOfValue) |
void |
setSuggestions(java.util.List<TransportSuggestion> suggs) |
void |
setSuggestionSelectedListener(SuggestPopup.SuggestionSelectedListener ssl) |
protected void |
startLoading() |
void |
up() |
protected void |
updateDescriptionPopupPosition() |
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabelcenter, getOwner, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, 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, onPreviewNativeEvent, onUnload, 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, onLoad, 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, toStringprotected com.google.gwt.user.client.ui.ListBox choiceList
protected java.lang.String startOfValue
protected SuggestPopup.SuggestionSelectedListener listener
protected com.vaadin.client.ui.VOverlay descriptionPopup
protected java.util.List<TransportSuggestion> suggs
protected java.util.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(java.util.List<TransportSuggestion> suggs)
protected void populateList()
public void close()
public void hide()
hide in class com.vaadin.client.widgets.Overlaypublic void hide(boolean ac)
hide in class com.vaadin.client.widgets.Overlaypublic void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandlerpublic void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick in interface com.google.gwt.event.dom.client.DoubleClickHandlerpublic 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.Widgetpublic 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.ChangeHandlerpublic void setPopupPosition(int left,
int top)
setPopupPosition in class com.vaadin.client.widgets.Overlayprotected void updateDescriptionPopupPosition()
protected void createDescriptionPopup()
public void setStartOfValue(java.lang.String startOfValue)