Class DateField

All Implemented Interfaces:
FormElement

public class DateField
extends DataField<javafx.beans.property.ObjectProperty<LocalDate>,​LocalDate,​DateField>
This class provides an implementation of a Field containing a LocalDate value.
Author:
Tomasz KrzemiƄski
  • Constructor Details

    • DateField

      public DateField​(javafx.beans.property.ObjectProperty<LocalDate> valueProperty, javafx.beans.property.ObjectProperty<LocalDate> persistentValueProperty)
      Internal constructor for the DataField class. To create new elements, see the static factory methods in Field.
      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
      See Also:
      ::ofStringType, ::ofIntegerType, ::ofDoubleType, ::ofBooleanType
  • Method Details

    • bind

      public DateField bind​(javafx.beans.property.ObjectProperty<LocalDate> binding)
      Description copied from class: DataField
      Binds the given property with the field.
      Overrides:
      bind in class DataField<javafx.beans.property.ObjectProperty<LocalDate>,​LocalDate,​DateField>
      Parameters:
      binding - The property to be bound with.
      Returns:
      Returns the current field to allow for chaining.