public class VNativeSelect extends FocusableFlowPanelComposite
NativeSelect
component.Constructor and Description |
---|
VNativeSelect()
Creates a new
VNativeSelect instance. |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.ListBox |
getListBox()
Gets the underlying ListBox widget that this widget wraps.
|
int |
getVisibleItemCount()
Gets the number of items that are visible.
|
void |
setHeight(String height) |
void |
setSelectedItem(String value)
Sets the selected item by its value.
|
void |
setStylePrimaryName(String style) |
void |
setTabIndex(int tabIndex)
Sets the tab index.
|
void |
setVisibleItemCount(int visibleItemCount)
Sets the number of items that are visible.
|
void |
setWidth(String width) |
addBlurHandler, addFocusHandler, focus, getWidget
claimElement, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString
public void setStylePrimaryName(String style)
setStylePrimaryName
in class com.google.gwt.user.client.ui.UIObject
public void setSelectedItem(String value)
null
, removes
selection.value
- the value of the item to select or null
to select
nothingpublic void setTabIndex(int tabIndex)
tabIndex
- the tab index to setpublic com.google.gwt.user.client.ui.ListBox getListBox()
public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void setHeight(String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void setVisibleItemCount(int visibleItemCount)
visibleItemCount
- the visible item countpublic int getVisibleItemCount()
Copyright © 2018 Vaadin Ltd. All rights reserved.