org.lobobrowser.html.domimpl
Class HTMLFormElementImpl

java.lang.Object
  extended by org.lobobrowser.js.AbstractScriptableDelegate
      extended by org.lobobrowser.html.domimpl.NodeImpl
          extended by org.lobobrowser.html.domimpl.ElementImpl
              extended by org.lobobrowser.html.domimpl.HTMLElementImpl
                  extended by org.lobobrowser.html.domimpl.HTMLAbstractUIElement
                      extended by org.lobobrowser.html.domimpl.HTMLFormElementImpl
All Implemented Interfaces:
ModelNode, org.lobobrowser.html.style.CSS2PropertiesContext, org.lobobrowser.js.ScriptableDelegate, org.w3c.dom.Element, org.w3c.dom.html2.HTMLElement, org.w3c.dom.html2.HTMLFormElement, org.w3c.dom.Node

public class HTMLFormElementImpl
extends HTMLAbstractUIElement
implements org.w3c.dom.html2.HTMLFormElement


Field Summary
 
Fields inherited from class org.lobobrowser.html.domimpl.ElementImpl
attributes
 
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, logger, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
HTMLFormElementImpl()
           
HTMLFormElementImpl(java.lang.String name)
           
 
Method Summary
 java.lang.String getAcceptCharset()
           
 java.lang.String getAction()
           
 org.w3c.dom.html2.HTMLCollection getElements()
           
 java.lang.String getEnctype()
           
 int getLength()
           
 java.lang.String getMethod()
           
 java.lang.String getName()
           
 org.mozilla.javascript.Function getOnsubmit()
           
 java.lang.String getTarget()
           
 java.lang.Object item(int index)
           
 java.lang.Object namedItem(java.lang.String name)
           
 void reset()
           
 void setAcceptCharset(java.lang.String acceptCharset)
           
 void setAction(java.lang.String action)
           
 void setEnctype(java.lang.String enctype)
           
 void setMethod(java.lang.String method)
           
 void setName(java.lang.String name)
           
 void setOnsubmit(org.mozilla.javascript.Function value)
           
 void setTarget(java.lang.String target)
           
 void submit()
           
 void submit(FormInput[] extraFormInputs)
          This method should be called when form submission is done by a submit button.
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLAbstractUIElement
assignAttributeField, blur, focus, getEventFunction, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup
 
Methods inherited from class org.lobobrowser.html.domimpl.HTMLElementImpl
addStyleSheetDeclarations, appendOuterHTMLImpl, createDefaultStyleSheet, createRenderState, findStyleDeclarations, forgetLocalStyle, forgetStyle, getAncestor, getAncestorForJavaClass, getAncestorWithClass, getAncestorWithId, getAttributeAsBoolean, getAttributeAsInt, getCharset, getClassName, getComputedStyle, getCssInputSourceForDecl, getCurrentStyle, getDocumentBaseURI, getFormInputs, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOuterHTML, getParent, getParentStyle, getParentWithClass, getParentWithId, getPreceedingSibling, getPreceedingSiblingElement, getPreceedingSiblingWithClass, getPreceedingSiblingWithId, getPseudoNames, getStyle, informInvalid, informInvalidAttibute, setCharset, setClassName, setCurrentStyle, setInnerHTML, setMouseOver, setStyle, toString, warn, warn
 
Methods inherited from class org.lobobrowser.html.domimpl.ElementImpl
createSimilarNode, equalAttributes, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getDir, getElementsByTagName, getElementsByTagNameNS, getId, getLang, getLocalName, getNodeName, getNodeType, getNodeValue, getRawInnerText, getSchemaTypeInfo, getTagName, getTitle, hasAttribute, hasAttributeNS, hasAttributes, htmlEncodeChildText, isTagName, normalizeAttributeName, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeImpl, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDir, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setInnerText, setLang, setNodeValue, setTitle
 
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getBaseURI, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getDocumentURL, getFeature, getFirstChild, getFullURL, getHtmlRendererContext, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informDocumentInvalid, informExternalScriptLoading, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setTextContent, setUINode, setUserData
 
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.html2.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, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.lobobrowser.html.style.CSS2PropertiesContext
informLayoutInvalid, informLookInvalid, informPositionInvalid, informSizeInvalid
 

Constructor Detail

HTMLFormElementImpl

public HTMLFormElementImpl(java.lang.String name)

HTMLFormElementImpl

public HTMLFormElementImpl()
Method Detail

namedItem

public java.lang.Object namedItem(java.lang.String name)

item

public java.lang.Object item(int index)

getElements

public org.w3c.dom.html2.HTMLCollection getElements()
Specified by:
getElements in interface org.w3c.dom.html2.HTMLFormElement

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.html2.HTMLFormElement

getName

public java.lang.String getName()
Specified by:
getName in interface org.w3c.dom.html2.HTMLFormElement

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.w3c.dom.html2.HTMLFormElement

getAcceptCharset

public java.lang.String getAcceptCharset()
Specified by:
getAcceptCharset in interface org.w3c.dom.html2.HTMLFormElement

setAcceptCharset

public void setAcceptCharset(java.lang.String acceptCharset)
Specified by:
setAcceptCharset in interface org.w3c.dom.html2.HTMLFormElement

getAction

public java.lang.String getAction()
Specified by:
getAction in interface org.w3c.dom.html2.HTMLFormElement

setAction

public void setAction(java.lang.String action)
Specified by:
setAction in interface org.w3c.dom.html2.HTMLFormElement

getEnctype

public java.lang.String getEnctype()
Specified by:
getEnctype in interface org.w3c.dom.html2.HTMLFormElement

setEnctype

public void setEnctype(java.lang.String enctype)
Specified by:
setEnctype in interface org.w3c.dom.html2.HTMLFormElement

getMethod

public java.lang.String getMethod()
Specified by:
getMethod in interface org.w3c.dom.html2.HTMLFormElement

setMethod

public void setMethod(java.lang.String method)
Specified by:
setMethod in interface org.w3c.dom.html2.HTMLFormElement

getTarget

public java.lang.String getTarget()
Specified by:
getTarget in interface org.w3c.dom.html2.HTMLFormElement

setTarget

public void setTarget(java.lang.String target)
Specified by:
setTarget in interface org.w3c.dom.html2.HTMLFormElement

submit

public void submit()
Specified by:
submit in interface org.w3c.dom.html2.HTMLFormElement

setOnsubmit

public void setOnsubmit(org.mozilla.javascript.Function value)

getOnsubmit

public org.mozilla.javascript.Function getOnsubmit()

submit

public final void submit(FormInput[] extraFormInputs)
This method should be called when form submission is done by a submit button.

Parameters:
extraFormInputs - Any additional form inputs that need to be submitted, e.g. the submit button parameter.

reset

public void reset()
Specified by:
reset in interface org.w3c.dom.html2.HTMLFormElement


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Cobra Project Home]