Top Description Fields Constructors Methods
com.dlsc.formsfx.model.structure

public Class StringField

extends DataField<StringProperty, String, StringField>
Class Inheritance
Imports
com.dlsc.formsfx.view.controls.SimpleTextControl, javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, .SimpleStringProperty, .StringProperty

This class provides an implementation of a Field containing a string value.
Authors
Sacha Schmid, Rinesch Murugathas

Field Summary

Modifier and TypeField and Description
protected final BooleanProperty
Inherited from com.dlsc.formsfx.model.structure.DataField:
formatErrorformatErrorKeypersistentValuestringConverteruserInputvalidatorsvaluevalueTransformer

Constructor Summary

AccessConstructor and Description
protected
StringField(SimpleStringProperty
The property that is used to store the current valid value of the field.
valueProperty
,
SimpleStringProperty
The property that is used to store the latest persisted value of the field.
persistentValueProperty
)

The constructor of StringField.

Method Summary

Modifier and TypeMethod and Description
public boolean
public StringField

Returns:

Returns the current field to allow for chaining.
multiline
(boolean
The new value for the multiline property.
newValue
)

Sets whether the field is considered to be multiline or not.

public BooleanProperty
Inherited from com.dlsc.formsfx.model.structure.DataField:
bindformatformatformatformatformatgetUserInputgetValuepersistresetsetBindingModetranslateunbinduserInputPropertyvalidatevalidatevalidateRequiredvalueProperty

Field Detail

multilineback to summary
protected final BooleanProperty multiline

Constructor Detail

StringFieldback to summary
protected StringField(SimpleStringProperty valueProperty, SimpleStringProperty persistentValueProperty)

The constructor of StringField.

Parameters
valueProperty:SimpleStringProperty

The property that is used to store the current valid value of the field.

persistentValueProperty:SimpleStringProperty

The property that is used to store the latest persisted value of the field.

Method Detail

isMultilineback to summary
public boolean isMultiline()
multilineback to summary
public StringField multiline(boolean newValue)

Sets whether the field is considered to be multiline or not.

Parameters
newValue:boolean

The new value for the multiline property.

Returns:StringField

Returns the current field to allow for chaining.

multilinePropertyback to summary
public BooleanProperty multilineProperty()