Package com.teamdev.jxbrowser.dom
Interface FormControlElement
- All Superinterfaces:
Element
,EventTarget
,Node
,SearchContext
- All Known Subinterfaces:
InputElement
,SelectElement
,TextAreaElement
An HTML DOM form control element such as input, select, textarea, etc. Provides access to the
attributes of the form control element.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.teamdev.jxbrowser.dom.Element
Element.AlignTo
-
Method Summary
Modifier and TypeMethodDescriptionform()
Returns anOptional
that contains the HTML element for the form that contains this element, otherwise an emptyOptional
.boolean
Returnstrue
if the current form control is enabled.value()
Returns a string that represents the value associated with the form control.void
Associates the givenvalue
with the control.Methods inherited from interface com.teamdev.jxbrowser.dom.Element
attributeNodes, attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttribute, scrollIntoView
Methods inherited from interface com.teamdev.jxbrowser.dom.event.EventTarget
addEventListener, dispatch, eventListeners, removeEventListener
Methods inherited from interface com.teamdev.jxbrowser.dom.Node
appendChild, children, click, close, compareDocumentPosition, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, type, xPath
Methods inherited from interface com.teamdev.jxbrowser.dom.SearchContext
findElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagName
-
Method Details
-
isEnabled
boolean isEnabled()Returnstrue
if the current form control is enabled.- Throws:
ObjectClosedException
- when this instance is closed
-
value
String value()Returns a string that represents the value associated with the form control.- Throws:
ObjectClosedException
- when this instance is closed
-
value
Associates the givenvalue
with the control.- Parameters:
value
- the value to set- Throws:
ObjectClosedException
- when this instance is closed
-
form
Optional<FormElement> form()Returns anOptional
that contains the HTML element for the form that contains this element, otherwise an emptyOptional
.- Throws:
ObjectClosedException
- when this instance is closed
-