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

public Class BooleanField

extends DataField<BooleanProperty, Boolean, BooleanField>
Class Inheritance
Imports
com.dlsc.formsfx.view.controls.SimpleBooleanControl, javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, javafx.util.StringConverter

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

Field Summary

Inherited from com.dlsc.formsfx.model.structure.DataField:
formatErrorformatErrorKeypersistentValuestringConverteruserInputvalidatorsvaluevalueTransformer

Constructor Summary

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

The constructor of BooleanField.

Method Summary

Modifier and TypeMethod and Description
protected boolean
validateRequired(String
The new value to check for the required state.
newValue
)

Overrides com.dlsc.formsfx.model.structure.DataField.validateRequired.

Validates that the new field input matches the required condition.

Inherited from com.dlsc.formsfx.model.structure.DataField:
bindformatformatformatformatformatgetUserInputgetValuepersistresetsetBindingModetranslateunbinduserInputPropertyvalidatevalidatevalueProperty

Constructor Detail

BooleanFieldback to summary
protected BooleanField(SimpleBooleanProperty valueProperty, SimpleBooleanProperty persistentValueProperty)

The constructor of BooleanField.

Parameters
valueProperty:SimpleBooleanProperty

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

persistentValueProperty:SimpleBooleanProperty

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

Method Detail

validateRequiredback to summary
protected boolean validateRequired(String newValue)

Overrides com.dlsc.formsfx.model.structure.DataField.validateRequired.

Doc from com.dlsc.formsfx.model.structure.DataField.validateRequired.

Validates that the new field input matches the required condition.

Parameters
newValue:String

The new value to check for the required state.

Returns:boolean

Returns whether the input matches the required condition.

Annotations
@Override