Class BooleanField

All Implemented Interfaces:
FormElement

public class BooleanField
extends DataField<javafx.beans.property.BooleanProperty,​Boolean,​BooleanField>
This class provides an implementation of a Field containing a boolean value.
Author:
Sacha Schmid, Rinesch Murugathas
  • Constructor Details

    • BooleanField

      protected BooleanField​(javafx.beans.property.SimpleBooleanProperty valueProperty, javafx.beans.property.SimpleBooleanProperty persistentValueProperty)
      The constructor of BooleanField.
      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

    • validateRequired

      protected boolean validateRequired​(String newValue)
      Validates that the new field input matches the required condition.
      Overrides:
      validateRequired in class DataField<javafx.beans.property.BooleanProperty,​Boolean,​BooleanField>
      Parameters:
      newValue - The new value to check for the required state.
      Returns:
      Returns whether the input matches the required condition.