|
|||||||||||
| 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.DOptionElement
| Field Summary |
| 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 |
DOptionElement(DDocument d,
int id)
|
| Method Summary | |
boolean |
getDefaultSelected()
Represents the value of the HTML selected attribute. |
protected DFormElement |
getDForm()
|
boolean |
getDisabled()
The control is unavailable in this context. |
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 |
getIndex()
The index of this OPTION in its parent SELECT
, starting from 0. |
String |
getLabel()
Option label for use in hierarchical menus. |
boolean |
getSelected()
Represents the current state of the corresponding form control, in an interactive user agent. |
String |
getText()
The text contained within the option element. |
String |
getTextOrEmptyString()
|
String |
getValue()
The current form control value. |
protected void |
onDAttrValueChange(DAttr attr)
Deprecated. |
void |
setDefaultSelected(boolean defaultSelected)
|
void |
setDisabled(boolean disabled)
|
int |
setDynamicValue(String name,
Object value,
DynEnv env)
Set field `name' to `value'. |
void |
setIndex(int index)
|
void |
setLabel(String label)
|
void |
setSelected(boolean selected)
|
void |
setValue(String value)
|
| Methods inherited from class ice.storm.DynamicObject |
deleteSlot, getEnumeratableIds, getMethodPropertySource, getScriptDataLock, getScriptWrapper, getSlot, hasSlot, javaReflectionTarget, readOnlySlots, script_toSource, script_toString, setScriptWrapperIfAbsent, setSlot |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
protected DOptionElement(DDocument d,
int id)
| Method Detail |
protected void onDAttrValueChange(DAttr attr)
onDAttrValueChange in class DElementpublic final HTMLFormElement getForm()
HTMLOptionElementFORM element containing this control. Returns
null if this control is not within the context of a
form.
getForm in interface HTMLOptionElementprotected DFormElement getDForm()
public boolean getDefaultSelected()
HTMLOptionElementdefaultSelected, however, resets the state of the form
control. See the selected attribute definition in HTML 4.0.
getDefaultSelected in interface HTMLOptionElementpublic void setDefaultSelected(boolean defaultSelected)
setDefaultSelected in interface HTMLOptionElementpublic String getText()
HTMLOptionElement
getText in interface HTMLOptionElementpublic final String getTextOrEmptyString()
public int getIndex()
HTMLOptionElementOPTION in its parent SELECT
, starting from 0.
getIndex in interface HTMLOptionElementpublic void setIndex(int index)
public boolean getDisabled()
HTMLOptionElement
getDisabled in interface HTMLOptionElementpublic void setDisabled(boolean disabled)
setDisabled in interface HTMLOptionElementpublic String getLabel()
HTMLOptionElement
getLabel in interface HTMLOptionElementpublic void setLabel(String label)
setLabel in interface HTMLOptionElementpublic boolean getSelected()
HTMLOptionElement
getSelected in interface HTMLOptionElementpublic String getValue()
HTMLOptionElement
getValue in interface HTMLOptionElementpublic void setValue(String value)
setValue in interface HTMLOptionElementpublic void setSelected(boolean selected)
setSelected in interface HTMLOptionElement
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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||