Module MaterialFX
Interface ResettableProperty<T>
- Type Parameters:
T-
- All Superinterfaces:
Observable,ObservableValue<T>,Property<T>,ReadOnlyProperty<T>,WritableValue<T>
- All Known Implementing Classes:
ResettableBooleanProperty,ResettableDoubleProperty,ResettableFloatProperty,ResettableIntegerProperty,ResettableLongProperty,ResettableObjectProperty,ResettableStringProperty
Base interface for all resettable properties.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanSpecifies if the property has been reset.booleandefault voidreset()Sets the property's value to the default value.voidsetDefaultValue(T 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 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 javafx.beans.value.WritableValue
getValue, setValue
-
Method Details
-
reset
default void reset()Sets the property's value to the default value. -
isFireChangeOnReset
boolean isFireChangeOnReset() -
setFireChangeOnReset
void setFireChangeOnReset(boolean fireChangeOnReset) Specifies if the property should fire a change event when it is reset or not. -
hasBeenReset
boolean hasBeenReset()Specifies if the property has been reset. -
getDefaultValue
T getDefaultValue()- Returns:
- the property's default value
-
setDefaultValue
Sets the property's default value to the given value.
-