Module MaterialFX
Class ResettableStringProperty
java.lang.Object
javafx.beans.binding.StringExpression
javafx.beans.property.ReadOnlyStringProperty
javafx.beans.property.StringProperty
javafx.beans.property.StringPropertyBase
javafx.beans.property.SimpleStringProperty
io.github.palexdev.materialfx.beans.properties.resettable.ResettableStringProperty
- All Implemented Interfaces:
ResettableProperty<String>,Observable,Property<String>,ReadOnlyProperty<String>,ObservableObjectValue<String>,ObservableStringValue,ObservableValue<String>,WritableObjectValue<String>,WritableStringValue,WritableValue<String>
public class ResettableStringProperty
extends SimpleStringProperty
implements ResettableProperty<String>
A
SimpleStringProperty that implements ResettableProperty.-
Constructor Summary
ConstructorsConstructorDescriptionResettableStringProperty(Object bean, String name) ResettableStringProperty(Object bean, String name, String initialValue) ResettableStringProperty(Object bean, String name, String initialValue, String defaultValue) ResettableStringProperty(String initialValue) ResettableStringProperty(String initialValue, String defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanSpecifies if the property has been reset.booleanvoidvoidsetDefaultValue(String 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.SimpleStringProperty
getBean, getNameMethods inherited from class javafx.beans.property.StringPropertyBase
addListener, addListener, bind, get, invalidated, isBound, removeListener, removeListener, toString, unbindMethods inherited from class javafx.beans.property.StringProperty
bindBidirectional, bindBidirectional, bindBidirectional, setValue, unbindBidirectional, unbindBidirectionalMethods inherited from class javafx.beans.binding.StringExpression
concat, getValue, getValueSafe, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEmpty, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEmpty, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, length, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, stringExpressionMethods 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
-
ResettableStringProperty
public ResettableStringProperty() -
ResettableStringProperty
-
ResettableStringProperty
-
ResettableStringProperty
-
ResettableStringProperty
-
ResettableStringProperty
-
-
Method Details
-
isFireChangeOnReset
public boolean isFireChangeOnReset()- Specified by:
isFireChangeOnResetin interfaceResettableProperty<String>
-
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<String>
-
set
- Specified by:
setin interfaceWritableObjectValue<String>- Overrides:
setin classStringPropertyBase
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classStringPropertyBase
-
hasBeenReset
public boolean hasBeenReset()Description copied from interface:ResettablePropertySpecifies if the property has been reset.- Specified by:
hasBeenResetin interfaceResettableProperty<String>
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceResettableProperty<String>- 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<String>
-