public class VComboBox.SuggestionMenu extends MenuBar implements SubPartAware, com.google.gwt.event.dom.client.LoadHandler
| Modifier and Type | Method and Description |
|---|---|
void |
actOnEnteredValueAfterFiltering(String enteredItemValue)
Create/select a suggestion based on the used entered string.
|
void |
fixHeightTo(int pageItemsCount)
Fixes menus height to use same space as full page would use.
|
com.google.gwt.user.client.Element |
getSubPartElement(String subPart)
Locates an element inside a component using the identifier provided in
subPart. |
String |
getSubPartName(com.google.gwt.user.client.Element subElement)
Provides an identifier that identifies the element within the component.
|
void |
highlightSelectedItem()
Highlight (select) an item matching the current text box content
without triggering its action.
|
boolean |
isScrollActive()
Returns true if the scroll is active on the menu element or if the
menu currently displays the last page with less items then the
maximum visibility (in which case the scroll is not active, but the
scroll is active for any other page in general).
|
void |
markNewItemsHandled(String handledNewItem) |
void |
onLoad(com.google.gwt.event.dom.client.LoadEvent event) |
void |
selectFirstItem()
Deprecated.
use
VComboBox.SuggestionPopup.selectFirstItem() instead. |
void |
selectLastItem()
Deprecated.
use
VComboBox.SuggestionPopup.selectLastItem() instead. |
void |
setSuggestions(Collection<VComboBox.ComboBoxSuggestion> suggestions)
Sets the suggestions rendered in the menu.
|
addItem, addItem, addItem, addItem, addItem, clearItems, doItemAction, getAutoOpen, getFirstItem, getItems, getLastItem, getPreferredHeight, getSelectedIndex, getSelectedItem, onBrowserEvent, onDetach, onPopupClosed, removeItem, scrollSelectionIntoView, selectItem, setAutoOpen, setScrollEnabledaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic void fixHeightTo(int pageItemsCount)
public void setSuggestions(Collection<VComboBox.ComboBoxSuggestion> suggestions)
suggestions - The suggestions to be rendered in the menupublic void actOnEnteredValueAfterFiltering(String enteredItemValue)
enteredItemValue - user entered stringpublic com.google.gwt.user.client.Element getSubPartElement(String subPart)
SubPartAwaresubPart. The subPart identifier is component specific and
may be any string of characters, numbers, space characters and brackets.getSubPartElement in interface SubPartAwaresubPart - The identifier for the element inside the componentpublic String getSubPartName(com.google.gwt.user.client.Element subElement)
SubPartAwaresubElement is a part of the component and must never be null.
Note!
getSubPartElement(getSubPartName(element)) == element is not
always true. A component can choose to provide a more generic
identifier for any given element if the results of all interactions with
subElement are the same as interactions with the element
identified by the return value. For example a button can return an
identifier for the root element even though a DIV inside the button was
passed as subElement because interactions with the DIV and the
root button element produce the same result.
getSubPartName in interface SubPartAwaresubElement - The element the identifier string should uniquely identifysubElement or null
if no identifier could be provided.public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
onLoad in interface com.google.gwt.event.dom.client.LoadHandler@Deprecated public void selectFirstItem()
VComboBox.SuggestionPopup.selectFirstItem() instead.@Deprecated public void selectLastItem()
VComboBox.SuggestionPopup.selectLastItem() instead.public boolean isScrollActive()
isScrollActive in class MenuBarpublic void highlightSelectedItem()
public void markNewItemsHandled(String handledNewItem)
Copyright © 2018 Vaadin Ltd. All rights reserved.