Class StringField

All Implemented Interfaces:
FormElement

public class StringField
extends DataField<javafx.beans.property.StringProperty,​String,​StringField>
This class provides an implementation of a Field containing a string value.
Author:
Sacha Schmid, Rinesch Murugathas
  • Property Details

  • Field Details

    • multiline

      protected final javafx.beans.property.BooleanProperty multiline
  • Constructor Details

    • StringField

      protected StringField​(javafx.beans.property.SimpleStringProperty valueProperty, javafx.beans.property.SimpleStringProperty persistentValueProperty)
      The constructor of StringField.
      Parameters:
      valueProperty - The property that is used to store the current valid value of the field.
      persistentValueProperty - The property that is used to store the latest persisted value of the field.
  • Method Details

    • multiline

      public StringField multiline​(boolean newValue)
      Sets whether the field is considered to be multiline or not.
      Parameters:
      newValue - The new value for the multiline property.
      Returns:
      Returns the current field to allow for chaining.
    • isMultiline

      public boolean isMultiline()
      Gets the value of the property multiline.
      Property description:
    • multilineProperty

      public javafx.beans.property.BooleanProperty multilineProperty()
      See Also:
      isMultiline()