|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.Node
org.kde.koala.Element
org.kde.koala.HTMLElement
org.kde.koala.HTMLSelectElement
public class HTMLSelectElement
The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. See the SELECT element definition in HTML 4.0.
Constructor Summary | |
---|---|
|
HTMLSelectElement()
|
protected |
HTMLSelectElement(java.lang.Class dummy)
|
|
HTMLSelectElement(HTMLSelectElement other)
|
|
HTMLSelectElement(Node other)
|
Method Summary | |
---|---|
void |
add(HTMLElement element,
HTMLElement before)
Add a new element to the collection of OPTION
elements for this SELECT . |
void |
blur()
Removes keyboard focus from this element. |
boolean |
disabled()
The control is unavailable in this context. |
void |
focus()
Gives keyboard focus to this element. |
HTMLFormElement |
formElement()
### KDE 4.0: remove. |
long |
length()
The number of options in this SELECT . |
boolean |
multiple()
If true, multiple OPTION elements may be
selected in this SELECT . |
java.lang.String |
name()
Form control or object name when submitted with a form. |
HTMLCollection |
options()
The collection of OPTION elements contained by
this element. |
void |
remove(long index)
Remove an element from the collection of OPTION
elements for this SELECT . |
long |
selectedIndex()
The ordinal index of the selected option. |
void |
setDisabled(boolean arg1)
see disabled |
void |
setMultiple(boolean arg1)
see multiple |
void |
setName(java.lang.String arg1)
see name |
void |
setSelectedIndex(long arg1)
see selectedIndex |
void |
setSize(long arg1)
see size |
void |
setTabIndex(long arg1)
see tabIndex |
void |
setValue(java.lang.String arg1)
see value |
long |
size()
Number of visible rows. |
long |
tabIndex()
Index that represents the element's position in the tabbing order. |
java.lang.String |
type()
The type of control created. |
java.lang.String |
value()
The current form control value. |
Methods inherited from class org.kde.koala.HTMLElement |
---|
addCSSProperty, all, assignOther, children, className, dir, id, innerHTML, innerText, lang, removeCSSProperty, setClassName, setDir, setId, setInnerHTML, setInnerText, setLang, setTitle, title |
Methods inherited from class org.kde.koala.Node |
---|
addEventListener, appendChild, applyChanges, attributes, childNodes, cloneNode, dispatchEvent, elementId, firstChild, getRect, hasAttributes, hasChildNodes, index, insertBefore, isNull, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, op_equals, op_not_equals, ownerDocument, parentNode, prefix, previousSibling, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HTMLSelectElement(java.lang.Class dummy)
public HTMLSelectElement()
public HTMLSelectElement(HTMLSelectElement other)
public HTMLSelectElement(Node other)
Method Detail |
---|
public java.lang.String type()
public long selectedIndex()
public void setSelectedIndex(long arg1)
public java.lang.String value()
public void setValue(java.lang.String arg1)
public long length()
SELECT
.
public HTMLFormElement formElement()
public HTMLCollection options()
OPTION
elements contained by
this element.
public boolean disabled()
public void setDisabled(boolean arg1)
public boolean multiple()
OPTION
elements may be
selected in this SELECT
. See the
multiple attribute definition in HTML 4.0.
public void setMultiple(boolean arg1)
public java.lang.String name()
public void setName(java.lang.String arg1)
public long size()
public void setSize(long arg1)
public long tabIndex()
public void setTabIndex(long arg1)
public void add(HTMLElement element, HTMLElement before)
OPTION
elements for this SELECT
.
element
- The element to add.before
- The element to insert before, or 0 for the
tail of the list.public void remove(long index)
OPTION
elements for this SELECT
. Does nothing if no
element has the given index.
index
- The index of the item to remove.public void blur()
public void focus()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |