Package org.loboevolution.html.dom
Interface HTMLFormElement
- All Superinterfaces:
Element,EventTarget,HTMLElement,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode
- All Known Implementing Classes:
HTMLFormElementImpl
A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form,
as well as access to its component elements.
-
Field Summary
Fields inherited from interface org.loboevolution.html.node.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, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether a form will validate when it is submitted, without having to submit it.Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.Sets or retrieves the URL to which the form content is sent for processing.Specifies whether autocomplete is applied to an editable text field.Retrieves a collection, in source order, of all controls in a given form.Sets or retrieves the MIME encoding for the form.Sets or retrieves the encoding type for the form.intSets or retrieves the number of objects in a collection.Sets or retrieves how to send the form data to the server.getName()Sets or retrieves the name of the object.Sets or retrieves the window or frame at which to target content.booleanDesignates a form that is not validated when submitted.booleanreportValidity.voidreset()Fires when the user resets a form.voidsetAcceptCharset(String acceptCharset) setAcceptCharset.voidsetAction.voidsetAutocomplete(String autocomplete) setAutocomplete.voidsetEncoding(String encoding) setEncoding.voidsetEnctype(String enctype) setEnctype.voidsetMethod.voidsetName.voidsetNoValidate(boolean noValidate) setNoValidate.voidsetTarget.voidsubmit()Fires when a FORM is about to be submitted.Methods inherited from interface org.loboevolution.html.node.Element
closest, getAttribute, getAttributeNames, getAttributeNode, getAttributeNodeNS, getAttributeNS, getBoundingClientRect, getClassList, getClassName, getClientHeight, getClientLeft, getClientRects, getClientTop, getClientWidth, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getId, getInnerHTML, getLocalName, getNamespaceURI, getOuterHTML, getPrefix, getSchemaTypeInfo, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSlot, getTagName, hasAttribute, hasAttributeNS, hasPointerCapture, insertAdjacentElement, insertAdjacentHTML, matches, releasePointerCapture, removeAttribute, removeAttributeNode, removeAttributeNS, requestPointerLock, scroll, scrollBy, scrollIntoView, scrollIntoView, scrollTo, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setClassName, setId, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setOuterHTML, setPointerCapture, setScrollLeft, setScrollTop, setSlot, toggleAttribute, toggleAttributeMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getCurrentStyle, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getStyle, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslateMethods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTMLMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getAttributes, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setNodeValue, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildElementCount, getChildren, getFirstElementChild, getLastElementChild, querySelector, querySelectorAll
-
Method Details
-
getAcceptCharset
String getAcceptCharset()Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.- Returns:
- a
Stringobject.
-
setAcceptCharset
setAcceptCharset.
- Parameters:
acceptCharset- aStringobject.
-
getAction
String getAction()Sets or retrieves the URL to which the form content is sent for processing.- Returns:
- a
Stringobject.
-
setAction
setAction.
- Parameters:
action- aStringobject.
-
getAutocomplete
String getAutocomplete()Specifies whether autocomplete is applied to an editable text field.- Returns:
- a
Stringobject.
-
setAutocomplete
setAutocomplete.
- Parameters:
autocomplete- aStringobject.
-
getElements
HTMLFormControlsCollection getElements()Retrieves a collection, in source order, of all controls in a given form.- Returns:
- a
HTMLFormControlsCollectionobject.
-
getEncoding
String getEncoding()Sets or retrieves the MIME encoding for the form.- Returns:
- a
Stringobject.
-
setEncoding
setEncoding.
- Parameters:
encoding- aStringobject.
-
getEnctype
String getEnctype()Sets or retrieves the encoding type for the form.- Returns:
- a
Stringobject.
-
setEnctype
setEnctype.
- Parameters:
enctype- aStringobject.
-
getLength
int getLength()Sets or retrieves the number of objects in a collection.- Returns:
- a
Integerobject.
-
getMethod
String getMethod()Sets or retrieves how to send the form data to the server.- Returns:
- a
Stringobject.
-
setMethod
setMethod.
- Parameters:
method- aStringobject.
-
getName
String getName()Sets or retrieves the name of the object.- Returns:
- a
Stringobject.
-
setName
setName.
- Parameters:
name- aStringobject.
-
isNoValidate
boolean isNoValidate()Designates a form that is not validated when submitted.- Returns:
- a boolean.
-
setNoValidate
void setNoValidate(boolean noValidate) setNoValidate.
- Parameters:
noValidate- a boolean.
-
getTarget
String getTarget()Sets or retrieves the window or frame at which to target content.- Returns:
- a
Stringobject.
-
setTarget
setTarget.
- Parameters:
target- aStringobject.
-
checkValidity
boolean checkValidity()Returns whether a form will validate when it is submitted, without having to submit it.- Returns:
- a boolean.
-
reportValidity
boolean reportValidity()reportValidity.
- Returns:
- a boolean.
-
reset
void reset()Fires when the user resets a form. -
submit
void submit()Fires when a FORM is about to be submitted.
-