V
- is the generic type of the value
.@Deprecated public class ReadOnlyPropertyImpl<V> extends Object implements WritableProperty<V>
read-only
view on a WritableProperty
.getReadOnly()
Modifier and Type | Field and Description |
---|---|
private WritableProperty<V> |
property
Deprecated.
|
NO_PROPERTIES
PROPERTY_TYPE
Constructor and Description |
---|
ReadOnlyPropertyImpl(WritableProperty<V> property)
Deprecated.
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super V> listener)
Deprecated.
|
void |
addListener(javafx.beans.InvalidationListener listener)
Deprecated.
|
void |
bind(javafx.beans.value.ObservableValue<? extends V> observable)
Deprecated.
|
void |
bindBidirectional(javafx.beans.property.Property<V> other)
Deprecated.
|
void |
fromJson(javax.json.stream.JsonParser json)
Deprecated.
Deserializes this object from JSON (JavaScript-Object-Notation).
|
Bean |
getBean()
Deprecated.
|
String |
getName()
Deprecated.
|
WritableProperty<V> |
getReadOnly()
Deprecated.
|
GenericType<? extends V> |
getType()
Deprecated.
|
V |
getValue()
Deprecated.
This method gets the value of this object.
|
boolean |
isBound()
Deprecated.
|
boolean |
isMandatory()
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isValid()
Deprecated.
|
void |
removeListener(javafx.beans.value.ChangeListener<? super V> listener)
Deprecated.
|
void |
removeListener(javafx.beans.InvalidationListener listener)
Deprecated.
|
void |
setValue(V value)
Deprecated.
This method sets the
value . |
void |
toJson(javax.json.stream.JsonGenerator json)
Deprecated.
Serializes this object as JSON (JavaScript-Object-Notation).
|
String |
toString()
Deprecated.
|
void |
unbind()
Deprecated.
|
void |
unbindBidirectional(javafx.beans.property.Property<V> other)
Deprecated.
|
ValidationFailure |
validate()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadOnly
private final WritableProperty<V> property
public ReadOnlyPropertyImpl(WritableProperty<V> property)
property
- the WritableProperty
to give read-only
access to.public WritableProperty<V> getReadOnly()
getReadOnly
in interface WritableProperty<V>
read only
view on this property.public final boolean isReadOnly()
isReadOnly
in interface WritableProperty<V>
true
if this property is read-only and WritableValue.setValue(Object)
will fail with an exception,
false
otherwise.public GenericType<? extends V> getType()
getType
in interface ReadableProperty<V>
value
. Please note that the generic signature of this method
is returning the type GenericType
<? extends V> instead of GenericType
<V> because JavaFx is binding the type Number
for all numeric properties while e.g.
IntegerProperty
should be able to return GenericType
<Integer> what is compatible
with GenericType
<? extends Number>.public void bind(javafx.beans.value.ObservableValue<? extends V> observable)
bind
in interface javafx.beans.property.Property<V>
public void unbind()
unbind
in interface javafx.beans.property.Property<V>
public boolean isBound()
isBound
in interface javafx.beans.property.Property<V>
public void bindBidirectional(javafx.beans.property.Property<V> other)
bindBidirectional
in interface javafx.beans.property.Property<V>
public void unbindBidirectional(javafx.beans.property.Property<V> other)
unbindBidirectional
in interface javafx.beans.property.Property<V>
public Bean getBean()
getBean
in interface javafx.beans.property.ReadOnlyProperty<V>
getBean
in interface ReadableProperty<V>
public String getName()
getName
in interface javafx.beans.property.ReadOnlyProperty<V>
getName
in interface AttributeReadName
getName
in interface PropertyPath<V>
getName
in interface ReadableProperty<V>
capital
letter followed by alpha-numeric characters. The name of a single property must especially not contain the
dot character (.) that is used to separate segments in a path
.public void addListener(javafx.beans.value.ChangeListener<? super V> listener)
addListener
in interface javafx.beans.value.ObservableValue<V>
public void removeListener(javafx.beans.value.ChangeListener<? super V> listener)
removeListener
in interface javafx.beans.value.ObservableValue<V>
public V getValue()
AttributeReadValue
getValue
in interface javafx.beans.value.ObservableValue<V>
getValue
in interface javafx.beans.value.WritableValue<V>
getValue
in interface AttributeReadValue<V>
null
unless otherwise stated.public void addListener(javafx.beans.InvalidationListener listener)
addListener
in interface javafx.beans.Observable
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener
in interface javafx.beans.Observable
public void setValue(V value)
AttributeWriteValue
value
.setValue
in interface javafx.beans.value.WritableValue<V>
setValue
in interface AttributeWriteValue<V>
value
- is the new value
. May be null
unless otherwise stated.public boolean isMandatory()
isMandatory
in interface WritableProperty<V>
true
if this property is mandatory (a value
of null
is NOT
valid
.public boolean isValid()
isValid
in interface WritableProperty<V>
true
if valid, false
otherwise.WritableProperty.validate()
public ValidationFailure validate()
validate
in interface WritableProperty<V>
ValidationFailure
or null
if the value
is valid
.ValueValidator.validate(Object)
public void toJson(javax.json.stream.JsonGenerator json)
JsonSupport
toJson
in interface JsonSupport
json
- the JsonGenerator
where to write this object to. Has to be in
JsonGenerator.writeStartObject()
state.JsonUtil.write(JsonGenerator, String, Object)
public void fromJson(javax.json.stream.JsonParser json)
JsonSupport
JsonSupport.toJson(JsonGenerator)
- e.g. JsonSupport.toJson(JsonGenerator)
might write a property with its value while
JsonSupport.fromJson(JsonParser)
may only deserialze the value as the parent object has to handle the property names
that may appear in any order.fromJson
in interface JsonSupport
json
- the JsonParser
to read from.Copyright © 2001–2016 mmm-Team. All rights reserved.