Package org.patternfly.component.form
Class TextArea
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement,TextArea>
org.patternfly.component.form.FormControl<HTMLElement,TextArea>
org.patternfly.component.form.TextArea
- All Implemented Interfaces:
Attachable
,Container<HTMLElement,
,TextArea> Finder<HTMLElement>
,HasElement<HTMLElement,
,TextArea> HasHTMLElement<HTMLElement,
,TextArea> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
,TextArea> Component
,HasValue<String>
,WithText<HTMLElement,
,TextArea> Modifiers.Disabled<HTMLElement,
,TextArea> Modifiers.Plain<HTMLElement,
,TextArea> Modifiers.Readonly<HTMLElement,
,TextArea> Modifiers.Required<HTMLElement,
TextArea>
public class TextArea
extends FormControl<HTMLElement,TextArea>
implements HasValue<String>, Modifiers.Plain<HTMLElement,TextArea>, Modifiers.Readonly<HTMLElement,TextArea>, WithText<HTMLElement,TextArea>, Attachable
A text area component is used for entering a paragraph of text that is longer than one line.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo
(Consumer<HTMLElementBuilder<HTMLTextAreaElement>> consumer) Provides access to the underlying text area element using a fluent API stylevoid
attach
(MutationRecord mutationRecord) onChange
(ChangeHandler<TextArea, String> changeHandler) Defines a change handler that is called when thevalue()
of this text area changes.plain
(boolean plain) readonly
(boolean readonly) required
(boolean required) resize
(TextAreaResize resize) text()
Same asvalue(String)
static TextArea
static TextArea
Returns the underlying input elementthat()
value()
Same as value(value, false)Methods inherited from class org.patternfly.component.form.FormControl
disabled, resetValidation, validated
Methods inherited from class org.patternfly.component.BaseComponent
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Attachable
detach
Methods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, classList, classList, css, id, innerHtml, on, on, on, run, textContent, textNode, toggle, toggle, toggle, uniqueId
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, title
Methods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabled
Methods inherited from interface org.patternfly.style.Modifiers.Plain
plain
Methods inherited from interface org.patternfly.style.Modifiers.Readonly
readonly
Methods inherited from interface org.patternfly.style.Modifiers.Required
required
-
Method Details
-
textArea
-
textArea
-
attach
- Specified by:
attach
in interfaceAttachable
-
autoResize
-
readonly
- Specified by:
readonly
in interfaceModifiers.Readonly<HTMLElement,
TextArea>
-
plain
- Specified by:
plain
in interfaceModifiers.Plain<HTMLElement,
TextArea>
-
resize
-
required
- Specified by:
required
in interfaceModifiers.Required<HTMLElement,
TextArea>
-
text
Same asvalue(String)
- Specified by:
text
in interfaceWithText<HTMLElement,
TextArea>
-
value
Same as value(value, false) -
value
-
applyTo
Provides access to the underlying text area element using a fluent API style -
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
TextArea>
-
onChange
Defines a change handler that is called when thevalue()
of this text area changes. Changes are detected by adding an event listener for the keyup event to the text area element. -
value
-
textAreaElement
Returns the underlying input element -
text
- Specified by:
text
in interfaceWithText<HTMLElement,
TextArea>
-