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 anOptionalthat contains the HTML element for the form that contains this element, otherwise an emptyOptional.booleanReturnstrueif the current form control is enabled.value()Returns a string that represents the value associated with the form control.voidAssociates the givenvaluewith the control.Methods inherited from interface com.teamdev.jxbrowser.dom.Element
attributes, blur, boundingClientRect, boundingClientRectInViewport, focus, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, scrollIntoViewMethods inherited from interface com.teamdev.jxbrowser.dom.event.EventTarget
addEventListener, dispatch, eventListeners, removeEventListenerMethods 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, xPathMethods inherited from interface com.teamdev.jxbrowser.dom.SearchContext
findElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagName
-
Method Details
-
isEnabled
boolean isEnabled()Returnstrueif 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 givenvaluewith the control.- Parameters:
value- the value to set- Throws:
ObjectClosedException- when this instance is closed
-
form
Optional<FormElement> form()Returns anOptionalthat contains the HTML element for the form that contains this element, otherwise an emptyOptional.- Throws:
ObjectClosedException- when this instance is closed
-