Package org.patternfly.component.form
Class TextArea
java.lang.Object
org.patternfly.component.BaseComponent<E,B>
org.patternfly.component.form.FormControl<elemental2.dom.HTMLElement,TextArea>
org.patternfly.component.form.TextArea
- All Implemented Interfaces:
Attachable,Container<elemental2.dom.HTMLElement,,TextArea> Finder<elemental2.dom.HTMLElement>,HasElement<elemental2.dom.HTMLElement,,TextArea> HasHTMLElement<elemental2.dom.HTMLElement,,TextArea> IsElement<elemental2.dom.HTMLElement>,TypedBuilder<elemental2.dom.HTMLElement,,TextArea> Component,HasValue<String>,WithText<elemental2.dom.HTMLElement,,TextArea> Modifiers.Disabled<elemental2.dom.HTMLElement,,TextArea> Modifiers.Plain<elemental2.dom.HTMLElement,,TextArea> Modifiers.Readonly<elemental2.dom.HTMLElement,,TextArea> Modifiers.Required<elemental2.dom.HTMLElement,TextArea>
public class TextArea
extends FormControl<elemental2.dom.HTMLElement,TextArea>
implements HasValue<String>, Modifiers.Plain<elemental2.dom.HTMLElement,TextArea>, Modifiers.Readonly<elemental2.dom.HTMLElement,TextArea>, WithText<elemental2.dom.HTMLElement,TextArea>, Attachable
A text area component is used for entering a paragraph of text that is longer than one line.
-
Method Summary
Modifier and TypeMethodDescriptionapplyTo(Consumer<HTMLElementBuilder<elemental2.dom.HTMLTextAreaElement>> consumer) Provides access to the underlying text area element using a fluent API stylevoidattach(elemental2.dom.MutationRecord mutationRecord) onChange(ChangeHandler<TextArea, String> changeHandler) Defines a change handler that is called when thevalue()of this text area changes.onKeyup(ChangeHandler<TextArea, String> changeHandler) Defines a change handler that is called when thevalue()of this text area changes.placeholder(String placeholder) plain(boolean plain) readonly(boolean readonly) required(boolean required) resize(TextAreaResize resize) text()Same asvalue(String)static TextAreastatic TextAreaHTMLElementBuilder<elemental2.dom.HTMLTextAreaElement>Returns the underlying input elementthat()value()Same as value(value, false)Methods inherited from class org.patternfly.component.form.FormControl
disabled, resetValidation, validatedMethods inherited from class org.patternfly.component.BaseComponent
componentType, elementMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.elemento.Attachable
detachMethods inherited from interface org.jboss.elemento.Container
add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods 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, uniqueIdMethods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, style, style, style, style, style, titleMethods inherited from interface org.patternfly.style.Modifiers.Disabled
disabled, isDisabledMethods inherited from interface org.patternfly.style.Modifiers.Plain
plainMethods inherited from interface org.patternfly.style.Modifiers.Readonly
readonlyMethods inherited from interface org.patternfly.style.Modifiers.Required
required
-
Method Details
-
textArea
-
textArea
-
attach
public void attach(elemental2.dom.MutationRecord mutationRecord) - Specified by:
attachin interfaceAttachable
-
autoResize
-
readonly
- Specified by:
readonlyin interfaceModifiers.Readonly<elemental2.dom.HTMLElement,TextArea>
-
plain
- Specified by:
plainin interfaceModifiers.Plain<elemental2.dom.HTMLElement,TextArea>
-
placeholder
-
resize
-
required
- Specified by:
requiredin interfaceModifiers.Required<elemental2.dom.HTMLElement,TextArea>
-
text
Same asvalue(String) -
value
Same as value(value, false) -
value
-
applyTo
Provides access to the underlying text area element using a fluent API style -
that
- Specified by:
thatin interfaceTypedBuilder<elemental2.dom.HTMLElement,TextArea>
-
onKeyup
Defines a change handler that is called when thevalue()of this text area changes. Changes are detected by adding an event listener for theEventType.keyupevent to the text area element. -
onChange
Defines a change handler that is called when thevalue()of this text area changes. Changes are detected by adding an event listener for theEventType.changeevent to the text area element. -
value
-
textAreaElement
Returns the underlying input element -
text
-