public class StringProperty extends AbstractRegularProperty<String> implements WritableStringProperty
WritableStringProperty.AbstractProperty.PropertyBuilder<T extends AbstractProperty<? extends V>>| Modifier and Type | Field and Description |
|---|---|
private String |
value |
TYPEPROPERTY_TYPENO_PROPERTIES| Constructor and Description |
|---|
StringProperty(String name,
Bean bean)
The constructor.
|
StringProperty(String name,
Bean bean,
AbstractValidator<? super String> validator)
The constructor.
|
StringProperty(String name,
Bean bean,
Supplier<String> expression)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
doGetValue() |
protected boolean |
doSetValue(String newValue)
Called from
AbstractValueProperty.setValue(Object). |
void |
fromJson(javax.json.stream.JsonParser json)
Deserializes this object from JSON (JavaScript-Object-Notation).
|
protected void |
toJson(javax.json.stream.JsonGenerator json,
String stringValue) |
ValidatorBuilderString<AbstractProperty.PropertyBuilder<StringProperty>> |
withValdidator() |
addListener, addListener, fireValueChangedEvent, removeListener, removeListenerbind, bindBidirectional, clearValidationResult, copy, equals, getReadOnly, getValue, hashCode, invalidated, isBound, isReadOnly, isValid, markInvalid, requireWritable, setValue, unbind, unbindBidirectional, validateassignValueFrom, clone, copy, copy, copy, copy, copy, getBean, getJsonUtil, getName, getValidator, isMandatory, toJson, toString, withValdidatorfinalize, getClass, notify, notifyAll, wait, wait, waitget, getValueSafe, length, setconcat, getType, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, isEmpty, isEqualTo, isEqualTo, isEqualToIgnoreCase, isEqualToIgnoreCase, isNotEmpty, isNotEqualTo, isNotEqualTo, isNotEqualToIgnoreCase, isNotEqualToIgnoreCase, isNotNull, isNull, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualToisEqualTo, isNotEqualTogetBean, getNameaddListener, getValue, removeListenergetValuetoJsongetReadOnly, getReadOnly, isMandatory, isReadOnly, isValid, validatebind, bindBidirectional, isBound, unbind, unbindBidirectionalsetValueprivate String value
public StringProperty(String name, Bean bean)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().public StringProperty(String name, Bean bean, AbstractValidator<? super String> validator)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().validator - - see AbstractValueProperty.validate().public StringProperty(String name, Bean bean, Supplier<String> expression)
name - - see AbstractProperty.getName().bean - - see AbstractProperty.getBean().expression - the Supplier providing the actual value.protected String doGetValue()
doGetValue in class AbstractValueProperty<String>value.protected boolean doSetValue(String newValue)
AbstractValuePropertyAbstractValueProperty.setValue(Object).doSetValue in class AbstractValueProperty<String>newValue - the new value to set.true if the value has changed, false otherwise.public ValidatorBuilderString<AbstractProperty.PropertyBuilder<StringProperty>> withValdidator()
withValdidator in class AbstractProperty<String>builder for the validator of this property with a
parent-builder to create a AbstractProperty.copy(AbstractValidator) of this
property with the configured validator.protected void toJson(javax.json.stream.JsonGenerator json,
String stringValue)
toJson in class AbstractProperty<String>json - the JsonGenerator.stringValue - the value.AbstractProperty.toJson(JsonGenerator)public void fromJson(javax.json.stream.JsonParser json)
JsonSupportJsonSupport.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 JsonSupportjson - the JsonParser to read from.Copyright © 2001–2016 mmm-Team. All rights reserved.