Module MaterialFX
Class ResettableFloatProperty
java.lang.Object
javafx.beans.binding.NumberExpressionBase
javafx.beans.binding.FloatExpression
javafx.beans.property.ReadOnlyFloatProperty
javafx.beans.property.FloatProperty
javafx.beans.property.FloatPropertyBase
javafx.beans.property.SimpleFloatProperty
io.github.palexdev.materialfx.beans.properties.resettable.ResettableFloatProperty
- All Implemented Interfaces:
ResettableProperty<Number>,NumberExpression,Observable,Property<Number>,ReadOnlyProperty<Number>,ObservableFloatValue,ObservableNumberValue,ObservableValue<Number>,WritableFloatValue,WritableNumberValue,WritableValue<Number>
public class ResettableFloatProperty
extends SimpleFloatProperty
implements ResettableProperty<Number>
A
SimpleFloatProperty that implements ResettableProperty.-
Constructor Summary
ConstructorsConstructorDescriptionResettableFloatProperty(float initialValue) ResettableFloatProperty(float initialValue, float defaultValue) ResettableFloatProperty(Object bean, String name) ResettableFloatProperty(Object bean, String name, float initialValue) ResettableFloatProperty(Object bean, String name, float initialValue, Float defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanSpecifies if the property has been reset.booleanvoidset(float 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.SimpleFloatProperty
getBean, getNameMethods inherited from class javafx.beans.property.FloatPropertyBase
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.property.FloatProperty
asObject, bindBidirectional, floatProperty, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyFloatProperty
readOnlyFloatPropertyMethods inherited from class javafx.beans.binding.FloatExpression
add, add, add, add, divide, divide, divide, divide, doubleValue, floatExpression, floatExpression, floatValue, getValue, intValue, longValue, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtractMethods inherited from class javafx.beans.binding.NumberExpressionBase
add, asString, asString, asString, divide, 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, multiply, numberExpression, subtractMethods 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
-
ResettableFloatProperty
public ResettableFloatProperty() -
ResettableFloatProperty
public ResettableFloatProperty(float initialValue) -
ResettableFloatProperty
public ResettableFloatProperty(float initialValue, float defaultValue) -
ResettableFloatProperty
-
ResettableFloatProperty
-
ResettableFloatProperty
-
-
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(float newValue) - Specified by:
setin interfaceWritableFloatValue- Overrides:
setin classFloatPropertyBase
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classFloatPropertyBase
-
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>
-