Java com.google.gwt.user.client.ui ListBox fields, constructors, methods, implement or subclass

Example usage for Java com.google.gwt.user.client.ui ListBox fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gwt.user.client.ui ListBox.

The text is from its open source code.

Subclass

com.google.gwt.user.client.ui.ListBox has subclasses.
Click this link to see all its subclasses.

Constructor

ListBox()
Creates an empty list box in single selection mode.
ListBox(boolean isMultipleSelect)
Creates an empty list box.
ListBox(Element element)
This constructor may be used by subclasses to explicitly use an existing element.

Method

HandlerRegistrationaddBlurHandler(BlurHandler handler)
HandlerRegistrationaddChangeHandler(ChangeHandler handler)
voidaddChangeListener(ChangeListener listener)
HandlerRegistrationaddClickHandler(ClickHandler handler)
voidaddClickListener(ClickListener listener)
HandlerRegistrationaddFocusHandler(FocusHandler handler)
voidaddItem(String item)
Adds an item to the list box.
voidaddItem(String item, Direction dir)
Adds an item to the list box, specifying its direction.
voidaddItem(String item, String value)
Adds an item to the list box, specifying an initial value for the item.
HandlerRegistrationaddKeyDownHandler(KeyDownHandler handler)
voidclear()
Removes all items from the list box.
intgetItemCount()
Gets the number of items present in the list box.
StringgetItemText(int index)
Gets the text associated with the item at the specified index.
StringgetName()
intgetSelectedIndex()
Gets the currently-selected item.
StringgetValue(int index)
Gets the value associated with the item at a given index.
voidinsertItem(String item, Direction dir, int index)
Inserts an item into the list box, specifying its direction.
voidinsertItem(String item, String value, int index)
Inserts an item into the list box, specifying an initial value for the item.
voidinsertItem(String item, int index)
Inserts an item into the list box.
booleanisItemSelected(int index)
Determines whether an individual list item is selected.
booleanisMultipleSelect()
Gets whether this list allows multiple selection.
voidremoveItem(int index)
Removes the item at the specified index.
voidsetEnabled(boolean enabled)
Sets whether this widget is enabled.
voidsetFocus(boolean focused)
voidsetItemSelected(int index, boolean selected)
Sets whether an individual list item is selected.
voidsetItemText(int index, String text)
Sets the text associated with the item at a given index.
voidsetMultipleSelect(boolean multiple)
Sets whether this list allows multiple selections.
voidsetName(String name)
voidsetSelectedIndex(int index)
Sets the currently selected index.
voidsetTabIndex(int index)
voidsetValue(int index, String value)
Sets the value associated with the item at a given index.
voidsetVisibleItemCount(int visibleItems)
Sets the number of items that are visible.
ListBoxwrap(Element element)
Creates a ListBox widget that wraps an existing <select> element.