Top Constructors Methods
com.sun.webkit.dom

public Class HTMLOptionsCollectionImpl

extends HTMLCollectionImpl
Class Inheritance
Imports
org.w3c.dom.DOMException, .Node, org.w3c.dom.html.HTMLOptionElement

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
add(HTMLOptionElement option, int index)

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

pack-priv static HTMLOptionsCollectionImpl
public int
getLength()

Overrides com.sun.webkit.dom.HTMLCollectionImpl.getLength.

Implements org.w3c.dom.html.HTMLCollection.getLength.

This attribute specifies the length or size of the list.

pack-priv static native int
public int
pack-priv static native int
public Node
item(int
The index of the node to be fetched. The index origin is 0.
index
)

Overrides com.sun.webkit.dom.HTMLCollectionImpl.item.

Implements org.w3c.dom.html.HTMLCollection.item.

This method retrieves a node specified by ordinal index.

pack-priv static native long
public Node
namedItem(String
The name of the Node to be fetched.
name
)

Overrides com.sun.webkit.dom.HTMLCollectionImpl.namedItem.

Implements org.w3c.dom.html.HTMLCollection.namedItem.

This method retrieves a Node using a name.

pack-priv static native long
public void
setLength(int value)

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

public void
setSelectedIndex(int value)

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

Inherited from com.sun.webkit.dom.HTMLCollectionImpl:
createequalsgetPeergetPeerhashCode

Constructor Detail

HTMLOptionsCollectionImplback to summary
pack-priv HTMLOptionsCollectionImpl(long peer)

Method Detail

addback to summary
public void add(HTMLOptionElement option, int index) throws DOMException
addImplback to summary
pack-priv static native void addImpl(long peer, long option, int index)
getImplback to summary
pack-priv static HTMLOptionsCollectionImpl getImpl(long peer)

Hides com.sun.webkit.dom.HTMLCollectionImpl.getImpl.

getLengthback to summary
public int getLength()

Overrides com.sun.webkit.dom.HTMLCollectionImpl.getLength.

Implements org.w3c.dom.html.HTMLCollection.getLength.

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

This attribute specifies the length or size of the list.

getLengthImplback to summary
pack-priv static native int getLengthImpl(long peer)

Hides com.sun.webkit.dom.HTMLCollectionImpl.getLengthImpl.

getSelectedIndexback to summary
public int getSelectedIndex()
getSelectedIndexImplback to summary
pack-priv static native int getSelectedIndexImpl(long peer)
itemback to summary
public Node item(int index)

Overrides com.sun.webkit.dom.HTMLCollectionImpl.item.

Implements org.w3c.dom.html.HTMLCollection.item.

Doc from org.w3c.dom.html.HTMLCollection.item.

This method retrieves a node specified by ordinal index. Nodes are numbered in tree order (depth-first traversal order).

Parameters
index:int

The index of the node to be fetched. The index origin is 0.

Returns:Node

The Node at the corresponding position upon success. A value of null is returned if the index is out of range.

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

Hides com.sun.webkit.dom.HTMLCollectionImpl.itemImpl.

namedItemback to summary
public Node namedItem(String name)

Overrides com.sun.webkit.dom.HTMLCollectionImpl.namedItem.

Implements org.w3c.dom.html.HTMLCollection.namedItem.

Doc from org.w3c.dom.html.HTMLCollection.namedItem.

This method retrieves a Node using a name. It first searches for a Node with a matching id attribute. If it doesn't find one, it then searches for a Node with a matching name attribute, but only on those elements that are allowed a name attribute.

Parameters
name:String

The name of the Node to be fetched.

Returns:Node

The Node with a name or id attribute whose value corresponds to the specified string. Upon failure (e.g., no node with this name exists), returns null .

namedItemImplback to summary
pack-priv static native long namedItemImpl(long peer, String name)

Hides com.sun.webkit.dom.HTMLCollectionImpl.namedItemImpl.

setLengthback to summary
public void setLength(int value) throws DOMException
setLengthImplback to summary
pack-priv static native void setLengthImpl(long peer, int value)
setSelectedIndexback to summary
public void setSelectedIndex(int value)
setSelectedIndexImplback to summary
pack-priv static native void setSelectedIndexImpl(long peer, int value)