Module MaterialFX
Class ResettableObjectProperty<T>
java.lang.Object
javafx.beans.binding.ObjectExpression<T>
javafx.beans.property.ReadOnlyObjectProperty<T>
javafx.beans.property.ObjectProperty<T>
javafx.beans.property.ObjectPropertyBase<T>
javafx.beans.property.SimpleObjectProperty<T>
io.github.palexdev.materialfx.beans.properties.resettable.ResettableObjectProperty<T>
- All Implemented Interfaces:
ResettableProperty<T>,Observable,Property<T>,ReadOnlyProperty<T>,ObservableObjectValue<T>,ObservableValue<T>,WritableObjectValue<T>,WritableValue<T>
public class ResettableObjectProperty<T>
extends SimpleObjectProperty<T>
implements ResettableProperty<T>
A
SimpleObjectProperty that implements ResettableProperty.-
Constructor Summary
ConstructorsConstructorDescriptionResettableObjectProperty(Object bean, String name) ResettableObjectProperty(Object bean, String name, T initialValue) ResettableObjectProperty(Object bean, String name, T initialValue, T defaultValue) ResettableObjectProperty(T initialValue) ResettableObjectProperty(T initialValue, T defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanSpecifies if the property has been reset.booleanvoidvoidsetDefaultValue(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 class javafx.beans.property.SimpleObjectProperty
getBean, getNameMethods inherited from class javafx.beans.property.ObjectPropertyBase
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.property.ObjectProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.binding.ObjectExpression
asString, asString, asString, getValue, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull, objectExpressionMethods 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, setValue
-
Constructor Details
-
ResettableObjectProperty
public ResettableObjectProperty() -
ResettableObjectProperty
-
ResettableObjectProperty
-
ResettableObjectProperty
-
ResettableObjectProperty
-
ResettableObjectProperty
-
-
Method Details
-
isFireChangeOnReset
public boolean isFireChangeOnReset()- Specified by:
isFireChangeOnResetin interfaceResettableProperty<T>
-
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<T>
-
set
- Specified by:
setin interfaceWritableObjectValue<T>- Overrides:
setin classObjectPropertyBase<T>
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classObjectPropertyBase<T>
-
hasBeenReset
public boolean hasBeenReset()Description copied from interface:ResettablePropertySpecifies if the property has been reset.- Specified by:
hasBeenResetin interfaceResettableProperty<T>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceResettableProperty<T>- 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<T>
-