Class SuggestPopup
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.SimplePanel
com.google.gwt.user.client.ui.PopupPanel
com.vaadin.client.widgets.Overlay
com.vaadin.client.ui.VOverlay
io.jmix.ui.widget.client.addon.aceeditor.SuggestPopup
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ChangeHandler
,com.google.gwt.event.dom.client.DoubleClickHandler
,com.google.gwt.event.dom.client.KeyDownHandler
,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.SourcesPopupEvents
,Iterable<com.google.gwt.user.client.ui.Widget>
- Direct Known Subclasses:
JmixSuggestPopup
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.client.widgets.Overlay
com.vaadin.client.widgets.Overlay.PositionAndSize, com.vaadin.client.widgets.Overlay.ResizeAnimation
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
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.gwt.user.client.ui.ListBox
static final int
protected com.vaadin.client.ui.VOverlay
static final int
protected SuggestPopup.SuggestionSelectedListener
protected com.google.gwt.user.client.ui.Image
protected boolean
protected String
protected List<TransportSuggestion>
protected List<TransportSuggestion>
static final int
Fields inherited from class com.vaadin.client.ui.VOverlay
ac
Fields inherited from class com.vaadin.client.widgets.Overlay
ADDITIONAL_CLASSNAME_ANIMATE_IN, ADDITIONAL_CLASSNAME_ANIMATE_OUT, CLASSNAME_CONTAINER, CLASSNAME_SHADOW, current, Z_INDEX
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
protected void
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
void
select()
void
setPopupPosition
(int left, int top) void
setStartOfValue
(String startOfValue) void
setSuggestions
(List<TransportSuggestion> suggs) void
protected void
void
up()
protected void
Methods inherited from class com.vaadin.client.ui.VOverlay
getApplicationConnection, getOverlayContainer, getOverlayContainer, setApplicationConnection, setOverlayContainerLabel
Methods inherited from class com.vaadin.client.widgets.Overlay
center, getOwner, hide, isFitInWindow, isShimElementEnabled, needsShimElement, onAttach, onDetach, positionOrSizeUpdated, setFitInWindow, setHeight, setOwner, setVisible, setWidth, setZIndex, show, updateShadowSizeAndPosition
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
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
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getWidget, iterator, remove, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
choiceList
protected com.google.gwt.user.client.ui.ListBox choiceList -
startOfValue
-
listener
-
descriptionPopup
protected com.vaadin.client.ui.VOverlay descriptionPopup -
suggs
-
visibleSuggs
-
showDescriptions
protected boolean showDescriptions -
loadingImage
protected com.google.gwt.user.client.ui.Image loadingImage -
WIDTH
public static final int WIDTH- See Also:
-
HEIGHT
public static final int HEIGHT- See Also:
-
DESCRIPTION_WIDTH
public static final int DESCRIPTION_WIDTH- See Also:
-
-
Constructor Details
-
SuggestPopup
public SuggestPopup()
-
-
Method Details
-
setSuggestionSelectedListener
-
createChoiceList
protected void createChoiceList() -
startLoading
protected void startLoading() -
setSuggestions
-
populateList
protected void populateList() -
close
public void close() -
hide
public void hide()- Overrides:
hide
in classcom.vaadin.client.widgets.Overlay
-
hide
public void hide(boolean ac) - Overrides:
hide
in classcom.vaadin.client.widgets.Overlay
-
onKeyDown
public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event) - Specified by:
onKeyDown
in interfacecom.google.gwt.event.dom.client.KeyDownHandler
-
onDoubleClick
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) - Specified by:
onDoubleClick
in interfacecom.google.gwt.event.dom.client.DoubleClickHandler
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.google.gwt.user.client.ui.Widget
-
up
public void up() -
down
public void down() -
select
public void select() -
onChange
public void onChange(com.google.gwt.event.dom.client.ChangeEvent event) - Specified by:
onChange
in interfacecom.google.gwt.event.dom.client.ChangeHandler
-
setPopupPosition
public void setPopupPosition(int left, int top) - Overrides:
setPopupPosition
in classcom.vaadin.client.widgets.Overlay
-
updateDescriptionPopupPosition
protected void updateDescriptionPopupPosition() -
createDescriptionPopup
protected void createDescriptionPopup() -
setStartOfValue
-