Package org.loboevolution.html.dom
Interface HTMLFormElement
- All Superinterfaces:
Element
,EventTarget
,HTMLElement
,InnerHTML
,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 TypeMethodDescriptionboolean
Returns 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.int
Sets 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.boolean
Designates a form that is not validated when submitted.boolean
reportValidity.void
reset()
Fires when the user resets a form.void
setAcceptCharset
(String acceptCharset) setAcceptCharset.void
setAction.void
setAutocomplete
(String autocomplete) setAutocomplete.void
setEncoding
(String encoding) setEncoding.void
setEnctype
(String enctype) setEnctype.void
setMethod.void
setName.void
setNoValidate
(boolean noValidate) setNoValidate.void
setTarget.void
submit()
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, toggleAttribute
Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.dom.HTMLElement
click, getAccessKey, getAccessKeyLabel, getAutocapitalize, getContentEditable, getDir, getInnerText, getLang, getOffsetHeight, getOffsetLeft, getOffsetParent, getOffsetTop, getOffsetWidth, getTitle, isDraggable, isHidden, isSpellcheck, isTranslate, setAccessKey, setAutocapitalize, setContentEditable, setDir, setDraggable, setHidden, setInnerText, setLang, setSpellcheck, setTitle, setTranslate
Methods inherited from interface org.loboevolution.html.node.InnerHTML
setInnerHTML
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
Methods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSibling
Methods 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
String
object.
-
setAcceptCharset
setAcceptCharset.
- Parameters:
acceptCharset
- aString
object.
-
getAction
String getAction()Sets or retrieves the URL to which the form content is sent for processing.- Returns:
- a
String
object.
-
setAction
setAction.
- Parameters:
action
- aString
object.
-
getAutocomplete
String getAutocomplete()Specifies whether autocomplete is applied to an editable text field.- Returns:
- a
String
object.
-
setAutocomplete
setAutocomplete.
- Parameters:
autocomplete
- aString
object.
-
getElements
HTMLFormControlsCollection getElements()Retrieves a collection, in source order, of all controls in a given form.- Returns:
- a
HTMLFormControlsCollection
object.
-
getEncoding
String getEncoding()Sets or retrieves the MIME encoding for the form.- Returns:
- a
String
object.
-
setEncoding
setEncoding.
- Parameters:
encoding
- aString
object.
-
getEnctype
String getEnctype()Sets or retrieves the encoding type for the form.- Returns:
- a
String
object.
-
setEnctype
setEnctype.
- Parameters:
enctype
- aString
object.
-
getLength
int getLength()Sets or retrieves the number of objects in a collection.- Returns:
- a
Integer
object.
-
getMethod
String getMethod()Sets or retrieves how to send the form data to the server.- Returns:
- a
String
object.
-
setMethod
setMethod.
- Parameters:
method
- aString
object.
-
getName
String getName()Sets or retrieves the name of the object.- Returns:
- a
String
object.
-
setName
setName.
- Parameters:
name
- aString
object.
-
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
String
object.
-
setTarget
setTarget.
- Parameters:
target
- aString
object.
-
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.
-