Example usage for Java com.google.gwt.dom.client SelectElement fields, constructors, methods, implement or subclass
The text is from its open source code.
void | add(OptionElement option, OptionElement before) Add a new element to the collection of OPTION elements for this SELECT. |
SelectElement | as(Element elem) Assert that the given Element is compatible with this class and automatically typecast it. |
void | focus() |
NodeList | getElementsByTagName(String name) |
int | getLength() The number of options in this SELECT. |
String | getName() Form control or object name when submitted with a form. |
NodeList | getOptions() The collection of OPTION elements contained by this element. |
int | getSelectedIndex() The ordinal index of the selected option, starting from 0. |
int | getSize() Number of visible rows. |
String | getValue() The current form control value (i.e., the value of the currently selected option), if multiple options are selected this is the value of the first selected option. |
boolean | isDisabled() The control is unavailable in this context. |
boolean | isMultiple() If true, multiple OPTION elements may be selected in this SELECT. |
void | setAttribute(String name, String value) |
void | setDisabled(boolean disabled) The control is unavailable in this context. |
void | setDisabled(String disabled) The control is unavailable in this context. |
void | setMultiple(boolean multiple) If true, multiple OPTION elements may be selected in this SELECT. |
void | setName(String name) Form control or object name when submitted with a form. |
void | setSelectedIndex(int index) The ordinal index of the selected option, starting from 0. |
void | setSize(int size) Number of visible rows. |