ice.pilots.html4
Class DOptionElement

java.lang.Object
  extended byice.storm.DynamicObject
      extended byice.pilots.html4.DNode
          extended byice.pilots.html4.DElement
              extended byice.pilots.html4.DOptionElement
All Implemented Interfaces:
Cloneable, Element, ElementCSSInlineStyle, EventTarget, HTMLElement, HTMLOptionElement, Node

public class DOptionElement
extends DElement
implements HTMLOptionElement


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.pilots.html4.DElement
afterClone, attrNameToId, execDynamicMethod, getAttribute, getAttribute, getAttributeAsInt, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getBgColor, getChildViewport, getClassName, getClientLeft, getClientTop, getClientWidth, getColor, getDir, getElementsByTagName, getElementsByTagNameNS, getEmbeddedDocument, getEmbeddedViewHolder, getId, getInnerHTML, getLang, getLocalName, getName, getNamespaceURI, getNodeName, getNodeType, getOuterHTML, getPrefix, getStyle, getSynthetic, getTagName, getTitle, hasAttribute, hasAttributeNS, insertAdjacentHTML, removeAttribute, removeAttributeNode, removeAttributeNS, removeNode, setAttribute, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setBgColor, setClassName, setColor, setCols, setDir, setId, setInnerHTML, setLang, setName, setOuterHTML, setRows, setTitle, swapDNode, swapNode, toString
 
Methods inherited from class ice.pilots.html4.DNode
addEventListener, appendChild, appendDChild, clone, clone, cloneNode, contains, deleteSlot, dispatchEvent, getAll, getChildNodes, getDAttr, getDAttrCount, getDAttrFromIndex, getDAttrListHead, getDAttrValueOrNull, getDParent, getDynamicScopeParent, getFirstChild, getFirstDChild, getInnerText, getLastChild, getLastDChild, getNameId, getNextDSibling, getNextSibling, getNodeValue, getOuterText, getOwnerDDocument, getOwnerDocument, getParentDNode, getParentNode, getPilot, getPreviousDSibling, getPreviousSibling, getRootDNode, getRootNode, getSlot, hasAttributes, hasChildNodes, hasSlot, insertBefore, insertDChildBefore, isSupported, normalize, removeAllDAttrs, removeChild, removeDAttr, removeDAttr, removeDChild, removeEventListener, replaceChild, replaceDChild, setDAttr, setDAttr, setInnerText, setNodeValue, setOuterText, setParent, setPrefix, setSlot, unlinkAllSlots
 
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

DOptionElement

protected DOptionElement(DDocument d,
                         int id)
Method Detail

onDAttrValueChange

protected void onDAttrValueChange(DAttr attr)
Deprecated.  

Overrides:
onDAttrValueChange in class DElement

getForm

public final HTMLFormElement getForm()
Description copied from interface: HTMLOptionElement
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

Specified by:
getForm in interface HTMLOptionElement

getDForm

protected DFormElement getDForm()

getDefaultSelected

public boolean getDefaultSelected()
Description copied from interface: HTMLOptionElement
Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes. Changing defaultSelected, however, resets the state of the form control. See the selected attribute definition in HTML 4.0.

Specified by:
getDefaultSelected in interface HTMLOptionElement

setDefaultSelected

public void setDefaultSelected(boolean defaultSelected)
Specified by:
setDefaultSelected in interface HTMLOptionElement

getText

public String getText()
Description copied from interface: HTMLOptionElement
The text contained within the option element.

Specified by:
getText in interface HTMLOptionElement

getTextOrEmptyString

public final String getTextOrEmptyString()

getIndex

public int getIndex()
Description copied from interface: HTMLOptionElement
The index of this OPTION in its parent SELECT , starting from 0.

Specified by:
getIndex in interface HTMLOptionElement

setIndex

public void setIndex(int index)

getDisabled

public boolean getDisabled()
Description copied from interface: HTMLOptionElement
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

Specified by:
getDisabled in interface HTMLOptionElement

setDisabled

public void setDisabled(boolean disabled)
Specified by:
setDisabled in interface HTMLOptionElement

getLabel

public String getLabel()
Description copied from interface: HTMLOptionElement
Option label for use in hierarchical menus. See the label attribute definition in HTML 4.0.

Specified by:
getLabel in interface HTMLOptionElement

setLabel

public void setLabel(String label)
Specified by:
setLabel in interface HTMLOptionElement

getSelected

public boolean getSelected()
Description copied from interface: HTMLOptionElement
Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.

Specified by:
getSelected in interface HTMLOptionElement

getValue

public String getValue()
Description copied from interface: HTMLOptionElement
The current form control value. See the value attribute definition in HTML 4.0.

Specified by:
getValue in interface HTMLOptionElement

setValue

public void setValue(String value)
Specified by:
setValue in interface HTMLOptionElement

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface HTMLOptionElement

getDynamicValue

public Object getDynamicValue(String name,
                              DynEnv env)
Description copied from class: DynamicObject
Returns the `key' field or Defs.NOT_FOUND if `name' does not exist. Returns `FUNCTION_MARK' if `name' represent a function that can be invoke via execDynamicMethod. Note that returned `null' indicates that value is present but set to null.

Overrides:
getDynamicValue in class DElement

setDynamicValue

public int setDynamicValue(String name,
                           Object value,
                           DynEnv env)
Description copied from class: DynamicObject
Set field `name' to `value'. Use `env' to unwrap `value' to a particular type or store it as is

Overrides:
setDynamicValue in class DElement