|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.storm.DynamicObject
ice.pilots.html4.DNode
ice.pilots.html4.DElement
ice.pilots.html4.FormTypeElement
ice.pilots.html4.DSelectElement
| Nested Class Summary | |
static interface |
DSelectElement.SelectPainter
|
| Field Summary | |
protected DFormElement |
hackForm
|
| Fields inherited from class ice.pilots.html4.DNode |
doc, first, last, next, parent, prev |
| Fields inherited from class ice.storm.DynamicObject |
NOT_FOUND, SETD_IGNORE, SETD_NOT_FOUND, SETD_OK |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
| Constructor Summary | |
protected |
DSelectElement(DDocument d,
int id)
|
| Method Summary | |
void |
add(HTMLElement option,
HTMLElement before)
Add a new element to the collection of OPTION elements for
this SELECT. |
void |
blur()
Removes keyboard focus from this element. |
Object |
execDynamicMethod(String name,
Object[] args,
DynEnv env)
Perform function-like actions for `name' with the given args. |
DOptionElement |
firstDOption()
|
protected String |
fixValue(String value)
|
void |
focus()
Gives keyboard focus to this element. |
DFormElement |
getDForm()
|
boolean |
getDisabled()
The control is unavailable in this context. |
DOptionElement |
getDOption(int idx)
|
Object |
getDynamicValue(String name,
DynEnv env)
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. |
HTMLFormElement |
getForm()
Returns the FORM element containing this control. |
int |
getLength()
The number of options in this SELECT. |
boolean |
getMultiple()
If true, multiple OPTION elements may be selected in this
SELECT. |
int |
getOptionIndex(Object possible_option)
|
HTMLCollection |
getOptions()
The collection of OPTION elements contained by this
element. |
DOptionElement |
getSelectedDOption()
|
int |
getSelectedIndex()
The ordinal index of the selected option, starting from 0. |
int |
getSize()
Number of visible rows. |
Object |
getSlot(int index,
DynEnv env)
|
Object |
getSlot(String name,
DynEnv env)
|
int |
getTabIndex()
Index that represents the element's position in the tabbing order. |
String |
getType()
#4699. |
String |
getValue()
The current form control value. |
Node |
item(int idx)
This method retrieves a node specified by ordinal index. |
Node |
namedItem(String name)
This method retrieves a Node using a name. |
DOptionElement |
nextDOption(DOptionElement option)
|
void |
remove(int index)
Remove an element from the collection of OPTION elements
for this SELECT. |
void |
setDisabled(boolean disabled)
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
protected void |
setItem(int index,
DOptionElement option)
|
void |
setLength(int n)
|
void |
setMultiple(boolean multiple)
|
void |
setSelectedIndex(int selectedIndex)
|
void |
setSelectedIndexByUser(int selectedIndex)
|
void |
setSize(int size)
|
void |
setSlot(int index,
Object value,
DynEnv env)
Set index slot to `value'. |
void |
setTabIndex(int tabIndex)
|
void |
setValue(String value)
|
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.w3c.dom.html.HTMLSelectElement |
getForm, getName, setName |
| Methods inherited from interface org.w3c.dom.html.HTMLElement |
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle |
| Methods inherited from interface org.w3c.dom.Element |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
| Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
| Field Detail |
protected DFormElement hackForm
| Constructor Detail |
protected DSelectElement(DDocument d,
int id)
| Method Detail |
public String getType()
getType in interface HTMLSelectElementpublic DOptionElement getSelectedDOption()
public int getSelectedIndex()
HTMLSelectElement
getSelectedIndex in interface HTMLSelectElementpublic final void setSelectedIndex(int selectedIndex)
setSelectedIndex in interface HTMLSelectElementpublic final void setSelectedIndexByUser(int selectedIndex)
public String getValue()
HTMLSelectElement
getValue in interface HTMLSelectElementpublic void setValue(String value)
setValue in interface HTMLSelectElementpublic int getLength()
HTMLSelectElementSELECT.
getLength in interface HTMLSelectElementpublic void setLength(int n)
public final Node item(int idx)
HTMLCollection
item in interface HTMLCollectionNode at the corresponding position upon
success. A value of null is returned if the index is
out of range.public DOptionElement getDOption(int idx)
public DOptionElement firstDOption()
public DOptionElement nextDOption(DOptionElement option)
public int getOptionIndex(Object possible_option)
public Node namedItem(String name)
HTMLCollectionNode 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.
namedItem in interface HTMLCollectionNode 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.
protected void setItem(int index,
DOptionElement option)
public Object getSlot(String name,
DynEnv env)
getSlot in class DNode
public Object getSlot(int index,
DynEnv env)
getSlot in class DynamicObject
public void setSlot(int index,
Object value,
DynEnv env)
DynamicObject
setSlot in class DynamicObjectpublic HTMLCollection getOptions()
HTMLSelectElementOPTION elements contained by this
element.
getOptions in interface HTMLSelectElementpublic boolean getDisabled()
HTMLSelectElement
getDisabled in interface HTMLSelectElementpublic void setDisabled(boolean disabled)
setDisabled in interface HTMLSelectElementpublic boolean getMultiple()
HTMLSelectElementOPTION elements may be selected in this
SELECT. See the multiple attribute definition in HTML
4.0.
getMultiple in interface HTMLSelectElementpublic void setMultiple(boolean multiple)
setMultiple in interface HTMLSelectElementpublic int getSize()
HTMLSelectElement
getSize in interface HTMLSelectElementpublic void setSize(int size)
setSize in interface HTMLSelectElementpublic int getTabIndex()
HTMLSelectElement
getTabIndex in interface HTMLSelectElementpublic void setTabIndex(int tabIndex)
setTabIndex in interface HTMLSelectElement
public void add(HTMLElement option,
HTMLElement before)
HTMLSelectElementOPTION 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.
add in interface HTMLSelectElementpublic void remove(int index)
HTMLSelectElementOPTION elements
for this SELECT. Does nothing if no element has the
given index.
remove in interface HTMLSelectElementpublic void blur()
HTMLSelectElement
blur in interface HTMLSelectElementpublic void focus()
HTMLSelectElement
focus in interface HTMLSelectElement
public Object getDynamicValue(String name,
DynEnv env)
DynamicObject
getDynamicValue in class DElement
public int setDynamicValue(String name,
Object value,
DynEnv env)
DynamicObject
setDynamicValue in class DElement
public Object execDynamicMethod(String name,
Object[] args,
DynEnv env)
DynamicObject
execDynamicMethod in class DElementpublic final HTMLFormElement getForm()
public DFormElement getDForm()
protected String fixValue(String value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||