Package org.patternfly.component.form
Class TextArea
- java.lang.Object
-
- org.patternfly.component.BaseComponent<E,B>
-
- 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAreaapplyTo(Consumer<HTMLElementBuilder<HTMLTextAreaElement>> consumer)Provides access to the underlying text area element using a fluent API stylevoidattach(MutationRecord mutationRecord)TextAreaautoResize()TextAreaonChange(ChangeHandler<TextArea,String> changeHandler)Defines a change handler that is called when thevalue()of this text area changes.TextAreaplain(boolean plain)TextAreareadonly(boolean readonly)TextArearequired(boolean required)TextArearesize(TextAreaResize resize)Stringtext()TextAreatext(String text)Same asvalue(String)static TextAreatextArea(String id)static TextAreatextArea(String id, String value)HTMLElementBuilder<HTMLTextAreaElement>textAreaElement()Returns the underlying input elementTextAreathat()Stringvalue()TextAreavalue(String value)Same as value(value, false)TextAreavalue(String value, boolean fireEvent)-
Methods inherited from class org.patternfly.component.form.FormControl
disabled, 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, id, innerHtml, 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 Detail
-
attach
public void attach(MutationRecord mutationRecord)
- Specified by:
attachin interfaceAttachable
-
autoResize
public TextArea autoResize()
-
readonly
public TextArea readonly(boolean readonly)
- Specified by:
readonlyin interfaceModifiers.Readonly<HTMLElement,TextArea>
-
plain
public TextArea plain(boolean plain)
- Specified by:
plainin interfaceModifiers.Plain<HTMLElement,TextArea>
-
resize
public TextArea resize(TextAreaResize resize)
-
required
public TextArea required(boolean required)
- Specified by:
requiredin interfaceModifiers.Required<HTMLElement,TextArea>
-
text
public TextArea text(String text)
Same asvalue(String)- Specified by:
textin interfaceWithText<HTMLElement,TextArea>
-
value
public TextArea value(String value)
Same as value(value, false)
-
applyTo
public TextArea applyTo(Consumer<HTMLElementBuilder<HTMLTextAreaElement>> consumer)
Provides access to the underlying text area element using a fluent API style
-
that
public TextArea that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,TextArea>
-
onChange
public TextArea onChange(ChangeHandler<TextArea,String> changeHandler)
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.
-
textAreaElement
public HTMLElementBuilder<HTMLTextAreaElement> textAreaElement()
Returns the underlying input element
-
text
public String text()
- Specified by:
textin interfaceWithText<HTMLElement,TextArea>
-
-