//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
/**
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.
@short The select element allows the selection of an option.
*/
public class HTMLSelectElement extends HTMLElement {
protected HTMLSelectElement(Class dummy){super((Class) null);}
public HTMLSelectElement() {
super((Class) null);
newHTMLSelectElement();
}
private native void newHTMLSelectElement();
public HTMLSelectElement(HTMLSelectElement other) {
super((Class) null);
newHTMLSelectElement(other);
}
private native void newHTMLSelectElement(HTMLSelectElement other);
public HTMLSelectElement(Node other) {
super((Class) null);
newHTMLSelectElement(other);
}
private native void newHTMLSelectElement(Node other);
/**
The type of control created.
@short The type of control created.
*/
public native String type();
/**
The ordinal index of the selected option. The value -1 is
returned if no element is selected. If multiple options are
selected, the index of the first selected option is returned.
@short The ordinal index of the selected option.
*/
public native long selectedIndex();
/**
see selectedIndex
@short see selectedIndex
*/
public native void setSelectedIndex(long arg1);
/**
The current form control value.
@short The current form control value.
*/
public native String value();
/**
see value
@short see value
*/
public native void setValue(String arg1);
/**
The number of options in this SELECT
.
@short The number of options in this SELECT
.
*/
public native long length();
/**
### KDE 4.0: remove.
@short ### KDE 4.
*/
public native HTMLFormElement formElement();
/**
The collection of OPTION
elements contained by
this element.
@short The collection of OPTION
elements contained by this element.
*/
public native HTMLCollection options();
/**
The control is unavailable in this context. See the
disabled attribute definition in HTML 4.0.
@short The control is unavailable in this context.
*/
public native boolean disabled();
/**
see disabled
@short see disabled
*/
public native void setDisabled(boolean arg1);
/**
If true, multiple OPTION
elements may be
selected in this SELECT
. See the
multiple attribute definition in HTML 4.0.
@short If true, multiple OPTION
elements may be selected in this SELECT
.
*/
public native boolean multiple();
/**
see multiple
@short see multiple
*/
public native void setMultiple(boolean arg1);
/**
Form control or object name when submitted with a form. See the
name attribute definition in HTML 4.0.
@short Form control or object name when submitted with a form.
*/
public native String name();
/**
see name
@short see name
*/
public native void setName(String arg1);
/**
Number of visible rows. See the
size attribute definition in HTML 4.0.
@short Number of visible rows.
*/
public native long size();
/**
see size
@short see size
*/
public native void setSize(long arg1);
/**
Index that represents the element's position in the tabbing
order. See the
tabindex attribute definition in HTML 4.0.
@short Index that represents the element's position in the tabbing order.
*/
public native long tabIndex();
/**
see tabIndex
@short see tabIndex
*/
public native void setTabIndex(long arg1);
/**
Add a new element to the collection of OPTION
elements for this SELECT
.
@param element The element to add.
@param before The element to insert before, or 0 for the
tail of the list.
@short Add a new element to the collection of OPTION
elements for this SELECT
.
*/
public native void add(HTMLElement element, HTMLElement before);
/**
Remove an element from the collection of OPTION
elements for this SELECT
. Does nothing if no
element has the given index.
@param index The index of the item to remove.
@short Remove an element from the collection of OPTION
elements for this SELECT
.
*/
public native void remove(long index);
/**
Removes keyboard focus from this element.
@short Removes keyboard focus from this element.
*/
public native void blur();
/**
Gives keyboard focus to this element.
@short Gives keyboard focus to this element.
*/
public native void focus();
// DOM::HTMLSelectElement* HTMLSelectElement(DOM::HTMLSelectElementImpl* arg1); >>>> NOT CONVERTED
}