Module MaterialFX
Class ResettableDoubleProperty
java.lang.Object
javafx.beans.binding.NumberExpressionBase
javafx.beans.binding.DoubleExpression
javafx.beans.property.ReadOnlyDoubleProperty
javafx.beans.property.DoubleProperty
javafx.beans.property.DoublePropertyBase
javafx.beans.property.SimpleDoubleProperty
io.github.palexdev.materialfx.beans.properties.resettable.ResettableDoubleProperty
- All Implemented Interfaces:
ResettableProperty<Number>,NumberExpression,Observable,Property<Number>,ReadOnlyProperty<Number>,ObservableDoubleValue,ObservableNumberValue,ObservableValue<Number>,WritableDoubleValue,WritableNumberValue,WritableValue<Number>
public class ResettableDoubleProperty
extends SimpleDoubleProperty
implements ResettableProperty<Number>
A
SimpleDoubleProperty that implements ResettableProperty.-
Constructor Summary
ConstructorsConstructorDescriptionResettableDoubleProperty(double initialValue) ResettableDoubleProperty(double initialValue, double defaultValue) ResettableDoubleProperty(Object bean, String name) ResettableDoubleProperty(Object bean, String name, double initialValue) ResettableDoubleProperty(Object bean, String name, double initialValue, Double defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanSpecifies if the property has been reset.booleanvoidset(double newValue) voidsetDefaultValue(Number defaultValue) Sets the property's default value to the given value.voidsetFireChangeOnReset(boolean fireChangeOnReset) Specifies if the property should fire a change event when it is reset or not.Methods inherited from class javafx.beans.property.SimpleDoubleProperty
getBean, getNameMethods inherited from class javafx.beans.property.DoublePropertyBase
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.property.DoubleProperty
asObject, bindBidirectional, doubleProperty, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyDoubleProperty
readOnlyDoublePropertyMethods inherited from class javafx.beans.binding.DoubleExpression
add, add, add, add, add, divide, divide, divide, divide, divide, doubleExpression, doubleExpression, doubleValue, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtractMethods inherited from class javafx.beans.binding.NumberExpressionBase
asString, asString, asString, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, numberExpressionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListenerMethods inherited from interface javafx.beans.property.Property
bind, bindBidirectional, isBound, unbind, unbindBidirectionalMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getNameMethods inherited from interface io.github.palexdev.materialfx.beans.properties.base.ResettableProperty
resetMethods inherited from interface javafx.beans.value.WritableValue
getValue
-
Constructor Details
-
ResettableDoubleProperty
public ResettableDoubleProperty() -
ResettableDoubleProperty
public ResettableDoubleProperty(double initialValue) -
ResettableDoubleProperty
public ResettableDoubleProperty(double initialValue, double defaultValue) -
ResettableDoubleProperty
-
ResettableDoubleProperty
-
ResettableDoubleProperty
-
-
Method Details
-
isFireChangeOnReset
public boolean isFireChangeOnReset()- Specified by:
isFireChangeOnResetin interfaceResettableProperty<Number>
-
setFireChangeOnReset
public void setFireChangeOnReset(boolean fireChangeOnReset) Description copied from interface:ResettablePropertySpecifies if the property should fire a change event when it is reset or not.- Specified by:
setFireChangeOnResetin interfaceResettableProperty<Number>
-
set
public void set(double newValue) - Specified by:
setin interfaceWritableDoubleValue- Overrides:
setin classDoublePropertyBase
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classDoublePropertyBase
-
hasBeenReset
public boolean hasBeenReset()Description copied from interface:ResettablePropertySpecifies if the property has been reset.- Specified by:
hasBeenResetin interfaceResettableProperty<Number>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceResettableProperty<Number>- Returns:
- the property's default value
-
setDefaultValue
Description copied from interface:ResettablePropertySets the property's default value to the given value.- Specified by:
setDefaultValuein interfaceResettableProperty<Number>
-