V - is the generic type of the value.public abstract class AbstractValueProperty<V> extends AbstractProperty<V>
WritableProperty.AbstractProperty.PropertyBuilder<T extends AbstractProperty<? extends V>>| Modifier and Type | Field and Description |
|---|---|
private javafx.beans.value.ObservableValue<? extends V> |
binding |
private javafx.beans.InvalidationListener |
bindingListener |
private Supplier<? extends V> |
expression |
private boolean |
readOnly |
private AbstractValueProperty<V> |
readOnlyProperty |
private ValidationFailure |
validationResult |
NO_PROPERTIESPROPERTY_TYPE| Constructor and Description |
|---|
AbstractValueProperty(String name,
Bean bean)
The constructor.
|
AbstractValueProperty(String name,
Bean bean,
AbstractValidator<? super V> validator)
The constructor.
|
AbstractValueProperty(String name,
Bean bean,
Supplier<? extends V> expression)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(javafx.beans.value.ObservableValue<? extends V> observable) |
void |
bindBidirectional(javafx.beans.property.Property<V> other) |
(package private) void |
bindInternal(javafx.beans.value.ObservableValue<? extends V> observable) |
protected void |
clearValidationResult()
Clears the cached internal
validation result. |
protected AbstractValueProperty<V> |
copy() |
protected abstract V |
doGetValue() |
protected abstract boolean |
doSetValue(V newValue)
Called from
setValue(Object). |
boolean |
equals(Object obj) |
WritableProperty<V> |
getReadOnly() |
V |
getValue()
This method gets the value of this object.
|
int |
hashCode() |
protected void |
invalidated()
May be overridden to receive invalidation notifications.
|
boolean |
isBound() |
boolean |
isReadOnly() |
boolean |
isValid() |
protected void |
markInvalid()
Invalidates this property.
|
protected void |
requireWritable() |
void |
setValue(V value)
This method sets the
value. |
void |
unbind() |
void |
unbindBidirectional(javafx.beans.property.Property<V> other) |
ValidationFailure |
validate() |
assignValueFrom, clone, copy, copy, copy, copy, copy, fireValueChangedEvent, getBean, getJsonUtil, getName, getValidator, isMandatory, toJson, toJson, toString, withValdidator, withValdidatorfinalize, getClass, notify, notifyAll, wait, wait, waitgetReadOnlygetTypefromJsonprivate ValidationFailure validationResult
private boolean readOnly
private AbstractValueProperty<V> readOnlyProperty
private javafx.beans.value.ObservableValue<? extends V> binding
private javafx.beans.InvalidationListener bindingListener
public AbstractValueProperty(String name, Bean bean)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().public AbstractValueProperty(String name, Bean bean, AbstractValidator<? super V> validator)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().validator - - see validate().public AbstractValueProperty(String name, Bean bean, Supplier<? extends V> expression)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().expression - the Supplier providing the actual value.protected AbstractValueProperty<V> copy()
copy in class AbstractProperty<V>public final V getValue()
AttributeReadValuenull unless otherwise stated.public void bind(javafx.beans.value.ObservableValue<? extends V> observable)
void bindInternal(javafx.beans.value.ObservableValue<? extends V> observable)
public void unbind()
public boolean isBound()
public void bindBidirectional(javafx.beans.property.Property<V> other)
public void unbindBidirectional(javafx.beans.property.Property<V> other)
public void setValue(V value)
AttributeWriteValuevalue.value - is the new value. May be null unless otherwise stated.protected final void requireWritable()
throws ReadOnlyException
ReadOnlyException - if this property is read-only.protected abstract boolean doSetValue(V newValue)
setValue(Object).protected void markInvalid()
protected void invalidated()
public boolean isValid()
true if valid, false otherwise.WritableProperty.validate()protected void clearValidationResult()
validation result. Has to be called if the value
has changed (from an external call).public ValidationFailure validate()
ValidationFailure or null if the value is valid.ValueValidator.validate(Object)public WritableProperty<V> getReadOnly()
read only view on this property.public final boolean isReadOnly()
true if this property is read-only and WritableValue.setValue(Object) will fail with an exception,
false otherwise.public int hashCode()
hashCode in class AbstractProperty<V>public boolean equals(Object obj)
equals in class AbstractProperty<V>Copyright © 2001–2016 mmm-Team. All rights reserved.