ice.pilots.html4
Class DFormElement

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

public class DFormElement
extends DElement
implements HTMLFormElement


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 DFormElement(DDocument doc, int id)
           
 
Method Summary
 void do_reset()
           
 Object execDynamicMethod(String name, Object[] args, DynEnv env)
          Perform function-like actions for `name' with the given args.
 String getAcceptCharset()
          List of character sets supported by the server.
 String getAction()
          Server-side form handler.
 Object getDynamicValue(String name, DynEnv env)
          Returns the `key' field or Defs.NOT_FOUND if `name' does not exist.
 HTMLCollection getElements()
          Returns a collection of all control elements in the form.
 String getEnctype()
          The content type of the submitted form, generally "application/x-www-form-urlencoded".
 int getLength()
          The number of form controls in the form.
 String getMethod()
          HTTP method used to submit form.
 Object getSlot(int index, DynEnv env)
           
 String getTarget()
          Frame to render the resource in.
 void reset()
          Restores a form element's default values.
 void setAcceptCharset(String acceptCharset)
           
 void setAction(String action)
           
 int setDynamicValue(String name, Object value, DynEnv env)
          Set field `name' to `value'.
 void setEnctype(String enctype)
           
 void setMethod(String method)
           
 void setTarget(String target)
           
 void submit()
          Submits the form.
 void submit(boolean sendEvent)
          Deprecated. Use submit() in place of submit(false) and submitWithEvent() in place of submit(true).
 void submitWithEvent()
           
 
Methods inherited from class ice.pilots.html4.DElement
afterClone, attrNameToId, 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, onDAttrValueChange, 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, 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.HTMLFormElement
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
 

Constructor Detail

DFormElement

protected DFormElement(DDocument doc,
                       int id)
Method Detail

getElements

public HTMLCollection getElements()
Description copied from interface: HTMLFormElement
Returns a collection of all control elements in the form.

Specified by:
getElements in interface HTMLFormElement

getLength

public int getLength()
Description copied from interface: HTMLFormElement
The number of form controls in the form.

Specified by:
getLength in interface HTMLFormElement

getAcceptCharset

public String getAcceptCharset()
Description copied from interface: HTMLFormElement
List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.0.

Specified by:
getAcceptCharset in interface HTMLFormElement

setAcceptCharset

public void setAcceptCharset(String acceptCharset)
Specified by:
setAcceptCharset in interface HTMLFormElement

getAction

public String getAction()
Description copied from interface: HTMLFormElement
Server-side form handler. See the action attribute definition in HTML 4.0.

Specified by:
getAction in interface HTMLFormElement

setAction

public void setAction(String action)
Specified by:
setAction in interface HTMLFormElement

getEnctype

public String getEnctype()
Description copied from interface: HTMLFormElement
The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.0.

Specified by:
getEnctype in interface HTMLFormElement

setEnctype

public void setEnctype(String enctype)
Specified by:
setEnctype in interface HTMLFormElement

getMethod

public String getMethod()
Description copied from interface: HTMLFormElement
HTTP method used to submit form. See the method attribute definition in HTML 4.0.

Specified by:
getMethod in interface HTMLFormElement

setMethod

public void setMethod(String method)
Specified by:
setMethod in interface HTMLFormElement

getTarget

public String getTarget()
Description copied from interface: HTMLFormElement
Frame to render the resource in. See the target attribute definition in HTML 4.0.

Specified by:
getTarget in interface HTMLFormElement

setTarget

public void setTarget(String target)
Specified by:
setTarget in interface HTMLFormElement

submit

public void submit()
Description copied from interface: HTMLFormElement
Submits the form. It performs the same action as a submit button.

Specified by:
submit in interface HTMLFormElement

submit

public void submit(boolean sendEvent)
Deprecated. Use submit() in place of submit(false) and submitWithEvent() in place of submit(true).


submitWithEvent

public void submitWithEvent()

reset

public void reset()
Description copied from interface: HTMLFormElement
Restores a form element's default values. It performs the same action as a reset button.

Specified by:
reset in interface HTMLFormElement

do_reset

public void do_reset()

getSlot

public Object getSlot(int index,
                      DynEnv env)
Overrides:
getSlot in class DynamicObject

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

execDynamicMethod

public Object execDynamicMethod(String name,
                                Object[] args,
                                DynEnv env)
Description copied from class: DynamicObject
Perform function-like actions for `name' with the given args. Returns the result or Defs.NOT_FOUND if name is not associated with function action. Should return result of env.wrapVoid() to indicate method without return value. Use `env' to unwrap `args' elements to a particular type.

Overrides:
execDynamicMethod in class DElement