Module javafx.base

Class BooleanProperty

    • Constructor Detail

      • BooleanProperty

        public BooleanProperty()
        Sole constructor
    • Method Detail

      • toString

        public String toString()
        Returns a string representation of this BooleanProperty object.
        Overrides:
        toString in class ReadOnlyBooleanProperty
        Returns:
        a string representation of this BooleanProperty object.
      • booleanProperty

        public static BooleanProperty booleanProperty​(Property<Boolean> property)
        Returns a BooleanProperty that wraps a Property. If the Property is already a BooleanProperty, it will be returned. Otherwise a new BooleanProperty is created that is bound to the Property. Note: null values in the source property will be interpreted as "false"
        Parameters:
        property - The source Property
        Returns:
        A BooleanProperty that wraps the Property if necessary
        Throws:
        NullPointerException - if property is null
        Since:
        JavaFX 8.0
      • asObject

        public ObjectProperty<Boolean> asObject()
        Creates an ObjectProperty that holds the value of this BooleanProperty. If the value of this BooleanProperty changes, the value of the ObjectProperty will be updated automatically.
        Overrides:
        asObject in class ReadOnlyBooleanProperty
        Returns:
        the new ObjectProperty
        Since:
        JavaFX 8.0