Klasse UiTextInputField<T extends UiTextInputField<T>>

Alle implementierten Schnittstellen:
de.esoco.lib.property.TextAttribute, UiHasActionEvents<String,T>, UiHasFocusEvents<String,T>, UiHasUpdateEvents<String,T>, org.obrel.core.Relatable
Bekannte direkte Unterklassen:
UiComboBox, UiPasswordField, UiPhoneNumberField, UiSearchField, UiTextArea, UiTextField

public abstract class UiTextInputField<T extends UiTextInputField<T>> extends UiInputField<String,T> implements de.esoco.lib.property.TextAttribute
A text input field.
  • Konstruktordetails

    • UiTextInputField

      public UiTextInputField(UiContainer<?> parent, String text)
      Creates a new instance.
      Parameter:
      parent - container The parent container
      text - The initial text
  • Methodendetails

    • getText

      public String getText()
      Returns the element's text.
      Angegeben von:
      getText in Schnittstelle de.esoco.lib.property.TextAttribute
      Gibt zurück:
      The text
    • setEditable

      public void setEditable(boolean editable)
      Sets the editable state of this text field. If set to FALSE no input will be possible but the field will not be rendered as disabled.
      Parameter:
      editable - The new editable
    • setFormattedText

      public void setFormattedText(String template, String... formatArguments)
      Sets a text that will be formatted by inserting values into a template, similar to String.format(String, Object...). Depending on the underlying client UI implementation the formatting options may be limited. Therefore the format arguments must already be in string format and advanced features like argument reordering may not be available.
      Parameter:
      template - The format template
      formatArguments - The format arguments
    • setText

      public void setText(String text)
      Sets the element's text.
      Angegeben von:
      setText in Schnittstelle de.esoco.lib.property.TextAttribute
      Parameter:
      text - The new text
    • text

      public T text(String text)
      Fluent method to set the text of this field.
      Parameter:
      text - The new text
      Gibt zurück:
      This instance