APIdia Launch Partner
Top Description Constructors Methods
javafx.beans.property

public abstract Class ReadOnlyLongProperty

extends LongExpression
implements ReadOnlyProperty<Number>
Class Inheritance
All Implemented Interfaces
javafx.beans.property.ReadOnlyProperty, javafx.beans.value.ObservableValue, javafx.beans.Observable
Known Direct Subclasses
javafx.beans.property.ReadOnlyLongPropertyBase, javafx.beans.property.LongProperty
Imports
javafx.beans.InvalidationListener, .WeakInvalidationListener, javafx.beans.binding.LongExpression

Superclass for all readonly properties wrapping a long.
Since
JavaFX 2.0
See Also
javafx.beans.value.ObservableLongValue, javafx.beans.binding.LongExpression, ReadOnlyProperty

Constructor Summary

AccessConstructor and Description
public
ReadOnlyLongProperty()

The constructor of ReadOnlyLongProperty.

Method Summary

Modifier and TypeMethod and Description
public ReadOnlyObjectProperty<Long>

Returns:

the new ReadOnlyObjectProperty
asObject
()

Overrides javafx.beans.binding.LongExpression.asObject.

Creates a javafx.beans.property.ReadOnlyObjectProperty that holds the value of this ReadOnlyLongProperty.

public static <
The type of Number to be wrapped
T extends Number
>
ReadOnlyLongProperty

Returns:

A ReadOnlyLongProperty that wraps the ReadOnlyProperty if necessary
readOnlyLongProperty
(final ReadOnlyProperty<T>
The source ReadOnlyProperty
property
)

Returns a ReadOnlyLongProperty that wraps a javafx.beans.property.ReadOnlyProperty.

public String

Returns:

a string representation of this ReadOnlyLongProperty object.
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlyLongProperty object.

Inherited from javafx.beans.binding.LongExpression:
addaddaddadddividedividedividedividedoubleValuefloatValuegetValueintValuelongExpressionlongExpressionlongValuemultiplymultiplymultiplymultiplynegatesubtractsubtractsubtractsubtract

Constructor Detail

ReadOnlyLongPropertyback to summary
public ReadOnlyLongProperty()

The constructor of ReadOnlyLongProperty.

Method Detail

asObjectback to summary
public ReadOnlyObjectProperty<Long> asObject()

Overrides javafx.beans.binding.LongExpression.asObject.

Creates a javafx.beans.property.ReadOnlyObjectProperty that holds the value of this ReadOnlyLongProperty. If the value of this ReadOnlyLongProperty changes, the value of the ReadOnlyObjectProperty will be updated automatically.

Returns:ReadOnlyObjectProperty<Long>

the new ReadOnlyObjectProperty

Annotations
@Override
Since
JavaFX 8.0
readOnlyLongPropertyback to summary
public static <T extends Number> ReadOnlyLongProperty readOnlyLongProperty(final ReadOnlyProperty<T> property)

Returns a ReadOnlyLongProperty that wraps a javafx.beans.property.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

Parameters
<T>
The type of Number to be wrapped
property:ReadOnlyProperty<T>

The source ReadOnlyProperty

Returns:ReadOnlyLongProperty

A ReadOnlyLongProperty that wraps the ReadOnlyProperty if necessary

Exceptions
NullPointerException:
if property is null
Since
JavaFX 8.0
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this ReadOnlyLongProperty object.

Returns:String

a string representation of this ReadOnlyLongProperty object.

Annotations
@Override