Module javafx.base

Class IntegerProperty

java.lang.Object
All Implemented Interfaces:
NumberExpression, Observable, Property<Number>, ReadOnlyProperty<Number>, ObservableIntegerValue, ObservableNumberValue, ObservableValue<Number>, WritableIntegerValue, WritableNumberValue, WritableValue<Number>
Direct Known Subclasses:
IntegerPropertyBase, JavaBeanIntegerProperty

public abstract class IntegerProperty extends ReadOnlyIntegerProperty implements Property<Number>, WritableIntegerValue
This class defines a Property wrapping an int value.

The value of an IntegerProperty can be get and set with ObservableIntegerValue.get(), IntegerExpression.getValue(), WritableIntegerValue.set(int), and setValue(Number).

A property can be bound and unbound unidirectional with Property.bind(ObservableValue) and Property.unbind(). Bidirectional bindings can be created and removed with bindBidirectional(Property) and unbindBidirectional(Property).

The context of a IntegerProperty can be read with ReadOnlyProperty.getBean() and ReadOnlyProperty.getName().

Note: setting or binding this property to a null value will set the property to "0.0". See setValue(java.lang.Number).

Since:
JavaFX 2.0
See Also: