Package com.vaadin.v7.client.ui
Class VFilterSelect.SuggestionMenu
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.vaadin.client.ui.menubar.MenuBar
-
- com.vaadin.v7.client.ui.VFilterSelect.SuggestionMenu
-
- All Implemented Interfaces:
com.google.gwt.event.dom.client.LoadHandler,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.PopupListener,SubPartAware,EventListener
- Enclosing class:
- VFilterSelect
public class VFilterSelect.SuggestionMenu extends MenuBar implements SubPartAware, com.google.gwt.event.dom.client.LoadHandler
The menu where the suggestions are rendered.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoPostFilterSelectedItemAction()Triggered after a selection has been made.voiddoSelectedItemAction()Send the current selection to the server.voidfixHeightTo(int pageItemsCount)Fixes menus height to use same space as full page would use.com.google.gwt.user.client.ElementgetSubPartElement(String subPart)StringgetSubPartName(com.google.gwt.user.client.Element subElement)booleanisScrollActive()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).voidonLoad(com.google.gwt.event.dom.client.LoadEvent event)voidselectFirstItem()Deprecated.useVFilterSelect.SuggestionPopup.selectFirstItem()instead.voidselectLastItem()Deprecated.useVFilterSelect.SuggestionPopup.selectLastItem()instead.voidsetSuggestions(Collection<VFilterSelect.FilterSelectSuggestion> suggestions)Sets the suggestions rendered in the menu.-
Methods inherited from class com.vaadin.client.ui.menubar.MenuBar
addItem, addItem, addItem, addItem, addItem, clearItems, doItemAction, getAutoOpen, getFirstItem, getItems, getLastItem, getPreferredHeight, getSelectedIndex, getSelectedItem, onBrowserEvent, onDetach, onPopupClosed, removeItem, scrollSelectionIntoView, selectItem, setAutoOpen, setScrollEnabled
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
-
-
-
-
Method Detail
-
fixHeightTo
public void fixHeightTo(int pageItemsCount)
Fixes menus height to use same space as full page would use. Needed to avoid height changes when quickly "scrolling" to last page.
-
setSuggestions
public void setSuggestions(Collection<VFilterSelect.FilterSelectSuggestion> suggestions)
Sets the suggestions rendered in the menu.- Parameters:
suggestions- The suggestions to be rendered in the menu
-
doSelectedItemAction
public void doSelectedItemAction()
Send the current selection to the server. Triggered when a selection is made or on a blur event.
-
doPostFilterSelectedItemAction
public void doPostFilterSelectedItemAction()
Triggered after a selection has been made.
-
getSubPartElement
public com.google.gwt.user.client.Element getSubPartElement(String subPart)
- Specified by:
getSubPartElementin interfaceSubPartAware
-
getSubPartName
public String getSubPartName(com.google.gwt.user.client.Element subElement)
- Specified by:
getSubPartNamein interfaceSubPartAware
-
onLoad
public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
- Specified by:
onLoadin interfacecom.google.gwt.event.dom.client.LoadHandler
-
selectFirstItem
@Deprecated public void selectFirstItem()
Deprecated.useVFilterSelect.SuggestionPopup.selectFirstItem()instead.
-
selectLastItem
@Deprecated public void selectLastItem()
Deprecated.useVFilterSelect.SuggestionPopup.selectLastItem()instead.
-
isScrollActive
public 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).- Overrides:
isScrollActivein classMenuBar- Since:
- 7.2.6
-
-