java.lang.Object | ||||
↳ | com.google.gwt.core.client.JavaScriptObject | |||
↳ | com.google.gwt.dom.client.Node | |||
↳ | com.google.gwt.dom.client.Element | |||
↳ | com.google.gwt.dom.client.SelectElement |
The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Node
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a new element to the collection of OPTION elements for this SELECT.
| |||||||||||
Assert that the given
Element is compatible with this class and
automatically typecast it. | |||||||||||
Removes all OPTION elements from this SELECT.
| |||||||||||
This method is deprecated.
use
isDisabled() instead.
| |||||||||||
Returns the FORM element containing this control.
| |||||||||||
The number of options in this SELECT.
| |||||||||||
If true, multiple OPTION elements may be selected in this SELECT.
| |||||||||||
Form control or object name when submitted with a form.
| |||||||||||
The collection of OPTION elements contained by this element.
| |||||||||||
The ordinal index of the selected option, starting from 0.
| |||||||||||
Number of visible rows.
| |||||||||||
The type of this form control.
| |||||||||||
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.
| |||||||||||
The control is unavailable in this context.
| |||||||||||
If true, multiple OPTION elements may be selected in this SELECT.
| |||||||||||
Remove an element from the collection of OPTION elements for this SELECT.
| |||||||||||
The control is unavailable in this context.
| |||||||||||
The control is unavailable in this context.
| |||||||||||
If true, multiple OPTION elements may be selected in this SELECT.
| |||||||||||
Form control or object name when submitted with a form.
| |||||||||||
The ordinal index of the selected option, starting from 0.
| |||||||||||
Number of visible rows.
| |||||||||||
The type of this form control.
| |||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.dom.client.Element
| |||||||||||
From class
com.google.gwt.dom.client.Node
| |||||||||||
From class
com.google.gwt.core.client.JavaScriptObject
| |||||||||||
From class
java.lang.Object
|
Add a new element to the collection of OPTION elements for this SELECT. This method is the equivalent of the appendChild method of the Node interface if the before parameter is null. It is equivalent to the insertBefore method on the parent of before in all other cases. This method may have no effect if the new element is not an OPTION or an OPTGROUP.
option | The element to add |
---|---|
before | The element to insert before, or null for the tail of the list |
Assert that the given Element
is compatible with this class and
automatically typecast it.
Removes all OPTION elements from this SELECT.
This method is deprecated.
use isDisabled()
instead.
The control is unavailable in this context.
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
The number of options in this SELECT.
If true, multiple OPTION elements may be selected in this SELECT.
The collection of OPTION elements contained by this element.
The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.
The type of this form control. This is the string "select-multiple" when the multiple attribute is true and the string "select-one" when false.
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.
The control is unavailable in this context.
If true, multiple OPTION elements may be selected in this SELECT.
Remove an element from the collection of OPTION elements for this SELECT. Does nothing if no element has the given index.
index | The index of the item to remove, starting from 0. |
---|
The control is unavailable in this context.
The control is unavailable in this context.
If true, multiple OPTION elements may be selected in this SELECT.
Form control or object name when submitted with a form.
The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.
The type of this form control. This is the string "select-multiple" when the multiple attribute is true and the string "select-one" when false.
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.