Class TextInput
java.lang.Object
org.patternfly.component.BaseComponent<HTMLElement, TextInput>
org.patternfly.component.form.FormControl<HTMLElement, TextInput>
org.patternfly.component.form.TextInput
- All Implemented Interfaces:
ElementAttributeMethods<HTMLElement, TextInput>, ElementClassListMethods<HTMLElement, TextInput>, ElementConsumerMethods<HTMLElement, TextInput>, ElementContainerMethods<HTMLElement, TextInput>, ElementEventMethods<HTMLElement, TextInput>, ElementIdMethods<HTMLElement, TextInput>, ElementQueryMethods<HTMLElement>, HTMLElementAttributeMethods<HTMLElement, TextInput>, HTMLElementDataMethods<HTMLElement, TextInput>, HTMLElementStyleMethods<HTMLElement, TextInput>, HTMLElementVisibilityMethods<HTMLElement, TextInput>, IsElement<HTMLElement>, TypedBuilder<HTMLElement, TextInput>, Component, ComponentIcon<HTMLElement, TextInput>, HasValue<String>, Validatable<HTMLElement, TextInput>, Modifiers.Disabled<HTMLElement, TextInput>, Modifiers.Plain<HTMLElement, TextInput>, Modifiers.Readonly<HTMLElement, TextInput>, Modifiers.Required<HTMLElement, TextInput>
public class TextInput
extends FormControl<HTMLElement, TextInput>
implements ComponentIcon<HTMLElement, TextInput>, HasValue<String>, Modifiers.Plain<HTMLElement, TextInput>, Modifiers.Readonly<HTMLElement, TextInput>
A text input is used to gather free-form text from a user.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionProvides access to the underlying input element using a fluent API styleexpanded()Same as expanded(true)expanded(boolean expanded) Adds/removes modifier(expanded)input()Returns the underlying input elementonChange(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that listens forEventType.changeevents.onInput(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that listens forEventType.inputevents.onKeydown(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that listens forEventType.keydownevents.onKeyup(ChangeHandler<TextInput, String> changeHandler) Defines a change handler that listens forEventType.keyupevents.placeholder(String placeholder) plain(boolean plain) Adds/removes modifier(plain)readonly(boolean readonly) Adds/removes modifier(readonly)required(boolean required) Adds/removes modifier(required)static TextInputstatic TextInputstatic TextInputtextInput(TextInputType type, String id) static TextInputtextInput(TextInputType type, String id, String value) that()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 ComponentIcon
iconMethods 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
-
textInput
-
textInput
-
textInput
-
textInput
-
applyTo
Provides access to the underlying input element using a fluent API style -
expanded
Same as expanded(true) -
expanded
Adds/removes modifier(expanded) -
icon
- Specified by:
iconin interfaceComponentIcon<HTMLElement, TextInput>
-
placeholder
-
plain
Description copied from interface:Modifiers.PlainAdds/removes modifier(plain)- Specified by:
plainin interfaceModifiers.Plain<HTMLElement, TextInput>
-
readonly
Description copied from interface:Modifiers.ReadonlyAdds/removes modifier(readonly)- Specified by:
readonlyin interfaceModifiers.Readonly<HTMLElement, TextInput>
-
removeIcon
- Specified by:
removeIconin interfaceComponentIcon<HTMLElement, TextInput>
-
required
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.Required<HTMLElement, TextInput>
-
value
Same as value(value, false) -
value
-
that
- Specified by:
thatin interfaceTypedBuilder<HTMLElement, TextInput>
-
onKeydown
Defines a change handler that listens forEventType.keydownevents. -
onKeyup
Defines a change handler that listens forEventType.keyupevents. -
onInput
Defines a change handler that listens forEventType.inputevents. -
onChange
Defines a change handler that listens forEventType.changeevents. -
value
-
input
Returns the underlying input element
-