Module MaterialFX
Class ResettableBooleanProperty
java.lang.Object
javafx.beans.binding.BooleanExpression
javafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.BooleanProperty
javafx.beans.property.BooleanPropertyBase
javafx.beans.property.SimpleBooleanProperty
io.github.palexdev.materialfx.beans.properties.resettable.ResettableBooleanProperty
- All Implemented Interfaces:
ResettableProperty<Boolean>,Observable,Property<Boolean>,ReadOnlyProperty<Boolean>,ObservableBooleanValue,ObservableValue<Boolean>,WritableBooleanValue,WritableValue<Boolean>
public class ResettableBooleanProperty
extends SimpleBooleanProperty
implements ResettableProperty<Boolean>
A
SimpleBooleanProperty that implements ResettableProperty.-
Constructor Summary
ConstructorsConstructorDescriptionResettableBooleanProperty(boolean initialValue) ResettableBooleanProperty(boolean initialValue, boolean defaultValue) ResettableBooleanProperty(Object bean, String name) ResettableBooleanProperty(Object bean, String name, boolean initialValue) ResettableBooleanProperty(Object bean, String name, boolean initialValue, boolean defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanSpecifies if the property has been reset.booleanvoidset(boolean newValue) voidsetDefaultValue(Boolean 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.SimpleBooleanProperty
getBean, getNameMethods inherited from class javafx.beans.property.BooleanPropertyBase
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.property.BooleanProperty
asObject, bindBidirectional, booleanProperty, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyBooleanProperty
readOnlyBooleanPropertyMethods inherited from class javafx.beans.binding.BooleanExpression
and, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, orMethods 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
-
ResettableBooleanProperty
public ResettableBooleanProperty() -
ResettableBooleanProperty
public ResettableBooleanProperty(boolean initialValue) -
ResettableBooleanProperty
public ResettableBooleanProperty(boolean initialValue, boolean defaultValue) -
ResettableBooleanProperty
-
ResettableBooleanProperty
-
ResettableBooleanProperty
-
-
Method Details
-
isFireChangeOnReset
public boolean isFireChangeOnReset()- Specified by:
isFireChangeOnResetin interfaceResettableProperty<Boolean>
-
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<Boolean>
-
set
public void set(boolean newValue) - Specified by:
setin interfaceWritableBooleanValue- Overrides:
setin classBooleanPropertyBase
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classBooleanPropertyBase
-
hasBeenReset
public boolean hasBeenReset()Description copied from interface:ResettablePropertySpecifies if the property has been reset.- Specified by:
hasBeenResetin interfaceResettableProperty<Boolean>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceResettableProperty<Boolean>- 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<Boolean>
-