Package org.patternfly.component.form
Class TextInput
- java.lang.Object
-
- org.patternfly.component.BaseComponent<HTMLElement,TextInput>
-
- org.patternfly.component.form.TextInput
-
- All Implemented Interfaces:
Container<HTMLElement,TextInput>,Finder<HTMLElement>,HasElement<HTMLElement,TextInput>,HasHTMLElement<HTMLElement,TextInput>,IsElement<HTMLElement>,TypedBuilder<HTMLElement,TextInput>,Component,HasValue<String>,Modifiers.Disabled<HTMLElement,TextInput>,Modifiers.Invalid<HTMLElement,TextInput>,Modifiers.Plain<HTMLElement,TextInput>,Modifiers.Readonly<HTMLElement,TextInput>,Modifiers.Required<HTMLElement,TextInput>
public class TextInput extends BaseComponent<HTMLElement,TextInput> implements HasValue<String>, Modifiers.Disabled<HTMLElement,TextInput>, Modifiers.Invalid<HTMLElement,TextInput>, Modifiers.Plain<HTMLElement,TextInput>, Modifiers.Readonly<HTMLElement,TextInput>, Modifiers.Required<HTMLElement,TextInput>
A text input is used to gather free-form text from a user.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextInputaddIcon(String iconClass)TextInputaddIcon(PredefinedIcon predefinedIcon)TextInputapplyTo(Consumer<InputElementBuilder<HTMLInputElement>> inputElementConsumer)Provides access to the underlying input element using a fluent API styleTextInputdisabled(boolean disabled)Adds/removes modifier(disabled)InputElementBuilder<HTMLInputElement>inputElement()Returns the underlying input elementTextInputinvalid(boolean invalid)Adds/removes modifier(error)TextInputonChange(ChangeHandler<TextInput,String> handler)TextInputplaceholder(String placeholder)TextInputplain(boolean plain)Adds/removes modifier(plain)TextInputreadonly(boolean readonly)Adds/removes modifier(readonly)TextInputrequired(boolean required)Adds/removes modifier(required)static TextInputtextInput(String id)TextInputthat()Stringvalue()TextInputvalue(String value)-
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.Container
add, add, addAll, addAll, addAll, addAll, addAll
-
Methods inherited from interface org.jboss.elemento.HasElement
add, apply, aria, aria, aria, attr, attr, attr, css, id, id, innerHtml, on, textContent, toggle, toggle, toggle
-
Methods inherited from interface org.jboss.elemento.HasHTMLElement
data, hidden, style, title
-
Methods inherited from interface org.patternfly.core.Modifiers.Disabled
disabled
-
Methods inherited from interface org.patternfly.core.Modifiers.Invalid
invalid
-
Methods inherited from interface org.patternfly.core.Modifiers.Plain
plain
-
Methods inherited from interface org.patternfly.core.Modifiers.Readonly
readonly
-
Methods inherited from interface org.patternfly.core.Modifiers.Required
required
-
-
-
-
Method Detail
-
that
public TextInput that()
- Specified by:
thatin interfaceTypedBuilder<HTMLElement,TextInput>
-
onChange
public TextInput onChange(ChangeHandler<TextInput,String> handler)
-
inputElement
public InputElementBuilder<HTMLInputElement> inputElement()
Returns the underlying input element
-
applyTo
public TextInput applyTo(Consumer<InputElementBuilder<HTMLInputElement>> inputElementConsumer)
Provides access to the underlying input element using a fluent API style
-
addIcon
public TextInput addIcon(PredefinedIcon predefinedIcon)
-
disabled
public TextInput disabled(boolean disabled)
Description copied from interface:Modifiers.DisabledAdds/removes modifier(disabled)- Specified by:
disabledin interfaceModifiers.Disabled<HTMLElement,TextInput>
-
readonly
public TextInput readonly(boolean readonly)
Description copied from interface:Modifiers.ReadonlyAdds/removes modifier(readonly)- Specified by:
readonlyin interfaceModifiers.Readonly<HTMLElement,TextInput>
-
plain
public TextInput plain(boolean plain)
Description copied from interface:Modifiers.PlainAdds/removes modifier(plain)- Specified by:
plainin interfaceModifiers.Plain<HTMLElement,TextInput>
-
invalid
public TextInput invalid(boolean invalid)
Description copied from interface:Modifiers.InvalidAdds/removes modifier(error)- Specified by:
invalidin interfaceModifiers.Invalid<HTMLElement,TextInput>
-
required
public TextInput required(boolean required)
Description copied from interface:Modifiers.RequiredAdds/removes modifier(required)- Specified by:
requiredin interfaceModifiers.Required<HTMLElement,TextInput>
-
-