Top Constructors Methods
com.sun.webkit.dom

public Class HTMLSelectElementImpl

extends HTMLElementImpl
implements HTMLSelectElement
Class Inheritance
All Implemented Interfaces
org.w3c.dom.html.HTMLSelectElement, org.w3c.dom.html.HTMLElement, org.w3c.dom.Element, org.w3c.dom.Node
Imports
org.w3c.dom.DOMException, .Node, .NodeList, org.w3c.dom.html.HTMLCollection, .HTMLElement, .HTMLFormElement, .HTMLSelectElement

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
add(HTMLElement
The element to add.
element
,
HTMLElement
The element to insert before, or null for the tail of the list.
before
)

Implements org.w3c.dom.html.HTMLSelectElement.add.

Add a new element to the collection of OPTION elements for this SELECT .

pack-priv static native void
addImpl(long peer, long element, long before)

public boolean
pack-priv static native boolean
checkValidityImpl(long peer)

public String
pack-priv static native String
public boolean
pack-priv static native boolean
getAutofocusImpl(long peer)

public boolean
getDisabled()

Implements org.w3c.dom.html.HTMLSelectElement.getDisabled.

The control is unavailable in this context.

pack-priv static native boolean
getDisabledImpl(long peer)

public HTMLFormElement
getForm()

Implements org.w3c.dom.html.HTMLSelectElement.getForm.

Returns the FORM element containing this control.

pack-priv static native long
getFormImpl(long peer)

pack-priv static HTMLSelectElement
public NodeList
pack-priv static native long
getLabelsImpl(long peer)

public int
getLength()

Implements org.w3c.dom.html.HTMLSelectElement.getLength.

The number of options in this SELECT .

pack-priv static native int
getLengthImpl(long peer)

public boolean
getMultiple()

Implements org.w3c.dom.html.HTMLSelectElement.getMultiple.

If true, multiple OPTION elements may be selected in this SELECT .

pack-priv static native boolean
getMultipleImpl(long peer)

public String
getName()

Implements org.w3c.dom.html.HTMLSelectElement.getName.

Form control or object name when submitted with a form.

pack-priv static native String
getNameImpl(long peer)

public HTMLOptionsCollectionImpl
getOptions()

Implements org.w3c.dom.html.HTMLSelectElement.getOptions.

The collection of OPTION elements contained by this element.

pack-priv static native long
getOptionsImpl(long peer)

public boolean
pack-priv static native boolean
getRequiredImpl(long peer)

public int
getSelectedIndex()

Implements org.w3c.dom.html.HTMLSelectElement.getSelectedIndex.

The ordinal index of the selected option, starting from 0.

pack-priv static native int
public HTMLCollection
pack-priv static native long
public int
getSize()

Implements org.w3c.dom.html.HTMLSelectElement.getSize.

Number of visible rows.

pack-priv static native int
getSizeImpl(long peer)

public String
getType()

Implements org.w3c.dom.html.HTMLSelectElement.getType.

The type of this form control.

pack-priv static native String
getTypeImpl(long peer)

public String
pack-priv static native String
public String
getValue()

Implements org.w3c.dom.html.HTMLSelectElement.getValue.

The current form control value.

pack-priv static native String
getValueImpl(long peer)

public boolean
pack-priv static native boolean
public Node
item(int index)

pack-priv static native long
itemImpl(long peer, int index)

public Node
pack-priv static native long
namedItemImpl(long peer, String name)

public void
remove(int
The index of the item to remove, starting from 0.
index
)

Implements org.w3c.dom.html.HTMLSelectElement.remove.

Remove an element from the collection of OPTION elements for this SELECT .

pack-priv static native void
removeImpl(long peer, int index)

public void
pack-priv static native void
setAutocompleteImpl(long peer, String value)

public void
setAutofocus(boolean value)

pack-priv static native void
setAutofocusImpl(long peer, boolean value)

public void
pack-priv static native void
setCustomValidityImpl(long peer, String error)

public void
pack-priv static native void
setDisabledImpl(long peer, boolean value)

public void
pack-priv static native void
setMultipleImpl(long peer, boolean value)

public void
pack-priv static native void
setNameImpl(long peer, String value)

public void
setRequired(boolean value)

pack-priv static native void
setRequiredImpl(long peer, boolean value)

public void
pack-priv static native void
setSelectedIndexImpl(long peer, int value)

public void
pack-priv static native void
setSizeImpl(long peer, int value)

public void
pack-priv static native void
setValueImpl(long peer, String value)

Inherited from com.sun.webkit.dom.HTMLElementImpl:
clickclickImplgetAccessKeygetAccessKeyImplgetChildrengetChildrenImplgetContentEditablegetContentEditableImplgetDirgetDirImplgetDraggablegetDraggableImplgetHiddengetHiddenImplgetIdgetIdImplgetInnerTextgetInnerTextImplgetIsContentEditablegetIsContentEditableImplgetLanggetLangImplgetOuterTextgetOuterTextImplgetSpellcheckgetSpellcheckImplgetTabIndexgetTabIndexImplgetTitlegetTitleDisplayStringgetTitleDisplayStringImplgetTitleImplgetTranslategetTranslateImplgetWebkitdropzonegetWebkitdropzoneImplinsertAdjacentElementinsertAdjacentElementImplinsertAdjacentHTMLinsertAdjacentHTMLImplinsertAdjacentTextinsertAdjacentTextImplsetAccessKeysetAccessKeyImplsetContentEditablesetContentEditableImplsetDirsetDirImplsetDraggablesetDraggableImplsetHiddensetHiddenImplsetIdsetIdImplsetInnerTextsetInnerTextImplsetLangsetLangImplsetOuterTextsetOuterTextImplsetSpellchecksetSpellcheckImplsetTabIndexsetTabIndexImplsetTitlesetTitleImplsetTranslatesetTranslateImplsetWebkitdropzonesetWebkitdropzoneImpl

Constructor Detail

HTMLSelectElementImplback to summary
pack-priv HTMLSelectElementImpl(long peer)

Method Detail

addback to summary
public void add(HTMLElement element, HTMLElement before) throws DOMException

Implements org.w3c.dom.html.HTMLSelectElement.add.

Doc from org.w3c.dom.html.HTMLSelectElement.add.

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.

Parameters
element:HTMLElement

The element to add.

before:HTMLElement

The element to insert before, or null for the tail of the list.

Exceptions
DOMException:
NOT_FOUND_ERR: Raised if before is not a descendant of the SELECT element.
addImplback to summary
pack-priv static native void addImpl(long peer, long element, long before)
checkValidityback to summary
public boolean checkValidity()
checkValidityImplback to summary
pack-priv static native boolean checkValidityImpl(long peer)
getAutocompleteback to summary
public String getAutocomplete()
getAutocompleteImplback to summary
pack-priv static native String getAutocompleteImpl(long peer)
getAutofocusback to summary
public boolean getAutofocus()
getAutofocusImplback to summary
pack-priv static native boolean getAutofocusImpl(long peer)
getDisabledback to summary
public boolean getDisabled()

Implements org.w3c.dom.html.HTMLSelectElement.getDisabled.

Doc from org.w3c.dom.html.HTMLSelectElement.getDisabled.

The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

getDisabledImplback to summary
pack-priv static native boolean getDisabledImpl(long peer)
getFormback to summary
public HTMLFormElement getForm()

Implements org.w3c.dom.html.HTMLSelectElement.getForm.

Doc from org.w3c.dom.html.HTMLSelectElement.getForm.

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

getFormImplback to summary
pack-priv static native long getFormImpl(long peer)
getImplback to summary
pack-priv static HTMLSelectElement getImpl(long peer)

Hides com.sun.webkit.dom.HTMLElementImpl.getImpl.

getLabelsback to summary
public NodeList getLabels()
getLabelsImplback to summary
pack-priv static native long getLabelsImpl(long peer)
getLengthback to summary
public int getLength()

Implements org.w3c.dom.html.HTMLSelectElement.getLength.

Doc from org.w3c.dom.html.HTMLSelectElement.getLength.

The number of options in this SELECT .

getLengthImplback to summary
pack-priv static native int getLengthImpl(long peer)
getMultipleback to summary
public boolean getMultiple()

Implements org.w3c.dom.html.HTMLSelectElement.getMultiple.

Doc from org.w3c.dom.html.HTMLSelectElement.getMultiple.

If true, multiple OPTION elements may be selected in this SELECT . See the multiple attribute definition in HTML 4.0.

getMultipleImplback to summary
pack-priv static native boolean getMultipleImpl(long peer)
getNameback to summary
public String getName()

Implements org.w3c.dom.html.HTMLSelectElement.getName.

Doc from org.w3c.dom.html.HTMLSelectElement.getName.

Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

getNameImplback to summary
pack-priv static native String getNameImpl(long peer)
getOptionsback to summary
public HTMLOptionsCollectionImpl getOptions()

Implements org.w3c.dom.html.HTMLSelectElement.getOptions.

Doc from org.w3c.dom.html.HTMLSelectElement.getOptions.

The collection of OPTION elements contained by this element.

getOptionsImplback to summary
pack-priv static native long getOptionsImpl(long peer)
getRequiredback to summary
public boolean getRequired()
getRequiredImplback to summary
pack-priv static native boolean getRequiredImpl(long peer)
getSelectedIndexback to summary
public int getSelectedIndex()

Implements org.w3c.dom.html.HTMLSelectElement.getSelectedIndex.

Doc from org.w3c.dom.html.HTMLSelectElement.getSelectedIndex.

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.

getSelectedIndexImplback to summary
pack-priv static native int getSelectedIndexImpl(long peer)
getSelectedOptionsback to summary
public HTMLCollection getSelectedOptions()
getSelectedOptionsImplback to summary
pack-priv static native long getSelectedOptionsImpl(long peer)
getSizeback to summary
public int getSize()

Implements org.w3c.dom.html.HTMLSelectElement.getSize.

Doc from org.w3c.dom.html.HTMLSelectElement.getSize.

Number of visible rows. See the size attribute definition in HTML 4.0.

getSizeImplback to summary
pack-priv static native int getSizeImpl(long peer)
getTypeback to summary
public String getType()

Implements org.w3c.dom.html.HTMLSelectElement.getType.

Doc from org.w3c.dom.html.HTMLSelectElement.getType.

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 .

getTypeImplback to summary
pack-priv static native String getTypeImpl(long peer)
getValidationMessageback to summary
public String getValidationMessage()
getValidationMessageImplback to summary
pack-priv static native String getValidationMessageImpl(long peer)
getValueback to summary
public String getValue()

Implements org.w3c.dom.html.HTMLSelectElement.getValue.

Doc from org.w3c.dom.html.HTMLSelectElement.getValue.

The current form control value.

getValueImplback to summary
pack-priv static native String getValueImpl(long peer)
getWillValidateback to summary
public boolean getWillValidate()
getWillValidateImplback to summary
pack-priv static native boolean getWillValidateImpl(long peer)
itemback to summary
public Node item(int index)
itemImplback to summary
pack-priv static native long itemImpl(long peer, int index)
namedItemback to summary
public Node namedItem(String name)
namedItemImplback to summary
pack-priv static native long namedItemImpl(long peer, String name)
removeback to summary
public void remove(int index)

Implements org.w3c.dom.html.HTMLSelectElement.remove.

Doc from org.w3c.dom.html.HTMLSelectElement.remove.

Remove an element from the collection of OPTION elements for this SELECT . Does nothing if no element has the given index.

Parameters
index:int

The index of the item to remove, starting from 0.

removeImplback to summary
pack-priv static native void removeImpl(long peer, int index)
setAutocompleteback to summary
public void setAutocomplete(String value)
setAutocompleteImplback to summary
pack-priv static native void setAutocompleteImpl(long peer, String value)
setAutofocusback to summary
public void setAutofocus(boolean value)
setAutofocusImplback to summary
pack-priv static native void setAutofocusImpl(long peer, boolean value)
setCustomValidityback to summary
public void setCustomValidity(String error)
setCustomValidityImplback to summary
pack-priv static native void setCustomValidityImpl(long peer, String error)
setDisabledback to summary
public void setDisabled(boolean value)

Implements org.w3c.dom.html.HTMLSelectElement.setDisabled.

setDisabledImplback to summary
pack-priv static native void setDisabledImpl(long peer, boolean value)
setMultipleback to summary
public void setMultiple(boolean value)

Implements org.w3c.dom.html.HTMLSelectElement.setMultiple.

setMultipleImplback to summary
pack-priv static native void setMultipleImpl(long peer, boolean value)
setNameback to summary
public void setName(String value)

Implements org.w3c.dom.html.HTMLSelectElement.setName.

setNameImplback to summary
pack-priv static native void setNameImpl(long peer, String value)
setRequiredback to summary
public void setRequired(boolean value)
setRequiredImplback to summary
pack-priv static native void setRequiredImpl(long peer, boolean value)
setSelectedIndexback to summary
public void setSelectedIndex(int value)

Implements org.w3c.dom.html.HTMLSelectElement.setSelectedIndex.

setSelectedIndexImplback to summary
pack-priv static native void setSelectedIndexImpl(long peer, int value)
setSizeback to summary
public void setSize(int value)

Implements org.w3c.dom.html.HTMLSelectElement.setSize.

setSizeImplback to summary
pack-priv static native void setSizeImpl(long peer, int value)
setValueback to summary
public void setValue(String value)

Implements org.w3c.dom.html.HTMLSelectElement.setValue.

setValueImplback to summary
pack-priv static native void setValueImpl(long peer, String value)