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, ElementAttributeMethods<HTMLElement, TextArea>, ElementClassListMethods<HTMLElement, TextArea>, ElementConsumerMethods<HTMLElement, TextArea>, ElementContainerMethods<HTMLElement, TextArea>, ElementEventMethods<HTMLElement, TextArea>, ElementIdMethods<HTMLElement, TextArea>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, TextArea>, HTMLElementDataMethods<HTMLElement, TextArea>, HTMLElementStyleMethods<HTMLElement, TextArea>, HTMLElementVisibilityMethods<HTMLElement, TextArea>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, TextArea>, Component, HasValue<String>, Validatable<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 Attachable, HasValue<String>, Modifiers.Plain<HTMLElement, TextArea>, Modifiers.Readonly<HTMLElement, TextArea>
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<HTMLTextAreaElementBuilder<HTMLTextAreaElement>> textArea) Provides access to the underlying text area element using a fluent API stylevoidattach(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) Adds/removes modifier(plain)readonly(boolean readonly) Adds/removes modifier(readonly)required(boolean required) Adds/removes modifier(required)resize(TextAreaResize resize) textArea()Returns the underlying text area elementstatic TextAreastatic TextAreathat()value()Same as value(value, false)Methods inherited from class FormControl
disabled, resetValidation, validatedMethods inherited from class BaseComponent
componentType, element, registerComponentMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Attachable
detachMethods inherited from interface ElementAttributeMethods
aria, aria, aria, attr, attr, attr, role, roleMethods inherited from interface ElementClassListMethods
classList, classList, css, toggle, toggle, toggleMethods inherited from interface ElementConsumerMethods
apply, runMethods inherited from interface ElementContainerMethods
add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAllMethods inherited from interface ElementEventMethods
on, on, onMethods inherited from interface ElementIdMethods
id, uniqueIdMethods inherited from interface ElementQueryMethods
closest, querySelector, querySelectorAllMethods inherited from interface HTMLElementAttributeMethods
titleMethods inherited from interface HTMLElementDataMethods
data, dataMethods inherited from interface HTMLElementVisibilityMethods
hiddenMethods inherited from interface Modifiers.Disabled
disabled, isDisabledMethods inherited from interface Modifiers.Plain
plainMethods inherited from interface Modifiers.Readonly
readonlyMethods inherited from interface Modifiers.Required
required
-
Method Details
-
textArea
-
textArea
-
attach
- Specified by:
attachin interfaceAttachable
-
applyTo
Provides access to the underlying text area element using a fluent API style -
autoResize
-
readonly
Description copied from interface:Modifiers.ReadonlyAdds/removes modifier(readonly)- Specified by:
readonlyin interfaceModifiers.Readonly<HTMLElement, TextArea>
-
plain
Description copied from interface:Modifiers.PlainAdds/removes modifier(plain)- Specified by:
plainin interfaceModifiers.Plain<HTMLElement, TextArea>
-
placeholder
-
resize
-
required
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.Required<HTMLElement, TextArea>
-
value
Same as value(value, false) -
value
-
that
- Specified by:
thatin interfaceTypedBuilder<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
-
textArea
Returns the underlying text area element
-