public abstract class AbstractResetableProperty<T> extends java.lang.Object implements ResetableProperty<T>
| Type | Property and Description |
|---|---|
javafx.beans.binding.BooleanBinding |
dirty
A property that tracks if the current value differs form the base value.
|
protected abstract javafx.beans.property.Property<T> |
writableBaseValue |
baseValue, value| Modifier and Type | Field and Description |
|---|---|
protected javafx.beans.binding.BooleanBinding |
dirty |
| Constructor and Description |
|---|
AbstractResetableProperty()
The constructor of
AbstractResetableProperty |
AbstractResetableProperty(java.lang.Object bean,
java.lang.String name)
The constructor of
AbstractResetableProperty |
AbstractResetableProperty(java.lang.Object bean,
java.lang.String name,
T baseValue)
The constructor of
AbstractResetableProperty |
AbstractResetableProperty(T baseValue)
The constructor of
AbstractResetableProperty |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkValuesAreNotEqual() |
protected javafx.beans.binding.BooleanBinding |
createDirtyBinding() |
javafx.beans.binding.BooleanBinding |
dirtyProperty()
A property that tracks if the current value differs form the base value.
|
T |
getBaseValue()
Returns the base value of this
ResetableProperty. |
java.lang.Object |
getBean()
Returns the
Object that contains this property. |
java.lang.String |
getName()
Returns the name of this property.
|
T |
getValue()
Returns the current value of this
ResetableProperty. |
boolean |
isDirty()
Query if the current value differs from the base value.
|
ResetableProperty<T> |
rebase()
Sets the current value as the base value.
|
ResetableProperty<T> |
reset()
Sets the base value as the current value.
|
ResetableProperty<T> |
setValue(T value)
Sets the current value.
|
protected abstract javafx.beans.property.Property<T> |
writableBaseValueProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbaseValueProperty, valueProperty@Nonnull protected abstract javafx.beans.property.Property<T> writableBaseValueProperty
@Nonnull public javafx.beans.binding.BooleanBinding dirtyProperty
dirtyProperty in interface ResetableProperty<T>public AbstractResetableProperty()
AbstractResetablePropertypublic AbstractResetableProperty(@Nullable
T baseValue)
AbstractResetablePropertybaseValue - the base value of this AbstractResetablePropertypublic AbstractResetableProperty(@Nullable
java.lang.Object bean,
@Nonnull
java.lang.String name)
AbstractResetablePropertybean - the bean of this AbstractResetablePropertyname - the name of this AbstractResetablePropertypublic AbstractResetableProperty(@Nullable
java.lang.Object bean,
@Nonnull
java.lang.String name,
@Nullable
T baseValue)
AbstractResetablePropertybean - the bean of this AbstractResetablePropertyname - the name of this AbstractResetablePropertybaseValue - the base value of this AbstractResetableProperty@Nonnull protected javafx.beans.binding.BooleanBinding createDirtyBinding()
protected boolean checkValuesAreNotEqual()
@Nonnull protected abstract javafx.beans.property.Property<T> writableBaseValueProperty()
@Nonnull public javafx.beans.binding.BooleanBinding dirtyProperty()
ResetablePropertydirtyProperty in interface ResetableProperty<T>@Nullable public T getBaseValue()
ResetablePropertyResetableProperty.getBaseValue in interface ResetableProperty<T>@Nullable public T getValue()
ResetablePropertyResetableProperty.getValue in interface ResetableProperty<T>@Nonnull public ResetableProperty<T> setValue(@Nullable T value)
ResetablePropertysetValue in interface ResetableProperty<T>value - the new valuepublic boolean isDirty()
ResetablePropertyisDirty in interface ResetableProperty<T>true if values differ, false otherwise@Nonnull public ResetableProperty<T> rebase()
ResetablePropertyrebase in interface ResetableProperty<T>ResetableProperty@Nonnull public ResetableProperty<T> reset()
ResetablePropertyreset in interface ResetableProperty<T>ResetableProperty@Nullable public java.lang.Object getBean()
ResetablePropertyObject that contains this property. If this property
is not contained in an Object, null is returned.getBean in interface ResetableProperty<T>Object or null@Nonnull public java.lang.String getName()
ResetablePropertyString.getName in interface ResetableProperty<T>String