Module javafx.base

Class ReadOnlyLongProperty

    • Constructor Detail

      • ReadOnlyLongProperty

        public ReadOnlyLongProperty​()
        The constructor of ReadOnlyLongProperty.
    • Method Detail

      • toString

        public String toString​()
        Returns a string representation of this ReadOnlyLongProperty object.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this ReadOnlyLongProperty object.
      • readOnlyLongProperty

        public static <T extends NumberReadOnlyLongProperty readOnlyLongProperty​(ReadOnlyProperty<T> property)
        Returns a ReadOnlyLongProperty that wraps a ReadOnlyProperty. If the ReadOnlyProperty is already a ReadOnlyLongProperty, it will be returned. Otherwise a new ReadOnlyLongProperty is created that is bound to the ReadOnlyProperty. Note: null values will be interpreted as 0L
        Type Parameters:
        T - The type of Number to be wrapped
        Parameters:
        property - The source ReadOnlyProperty
        Returns:
        A ReadOnlyLongProperty that wraps the ReadOnlyProperty if necessary
        Throws:
        NullPointerException - if property is null
        Since:
        JavaFX 8.0
      • asObject

        public ReadOnlyObjectProperty<Long> asObject​()
        Creates a ReadOnlyObjectProperty that holds the value of this ReadOnlyLongProperty. If the value of this ReadOnlyLongProperty changes, the value of the ReadOnlyObjectProperty will be updated automatically.
        Overrides:
        asObject in class LongExpression
        Returns:
        the new ReadOnlyObjectProperty
        Since:
        JavaFX 8.0