public abstract class WritableValueBase<T> extends AbstractProperty implements WritableValue<T>
adjusters, listeners, vetos| Constructor and Description |
|---|
WritableValueBase(String name,
PropertyType type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(WritableValue<T> other) |
<T2> void |
bindConvert(WritableValue<T2> other,
Function<T,T2> map) |
protected abstract ObservableValue<T> |
createReadOnly() |
T |
get() |
boolean |
isWritable() |
ObservableValue<T> |
readOnly() |
void |
set(T v) |
<T2> void |
setAndBindConvert(WritableValue<T2> other,
Function<T,T2> map,
Function<T2,T> mapBack) |
String |
toString() |
<T2> void |
unbind(WritableValue<T2> other) |
adjusters, listeners, name, type, userObjects, vetosclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetAndBindname, type, userObjects, vetoslistenerspublic WritableValueBase(String name, PropertyType type, T value)
public <T2> void setAndBindConvert(WritableValue<T2> other, Function<T,T2> map, Function<T2,T> mapBack)
setAndBindConvert in interface WritableValue<T>public void bind(WritableValue<T> other)
bind in interface ObservableValue<T>public <T2> void bindConvert(WritableValue<T2> other, Function<T,T2> map)
bindConvert in interface ObservableValue<T>public <T2> void unbind(WritableValue<T2> other)
unbind in interface ObservableValue<T>public boolean isWritable()
isWritable in interface Propertypublic T get()
get in interface ObservableValue<T>public void set(T v)
set in interface WritableValue<T>public ObservableValue<T> readOnly()
readOnly in interface ObservableValue<T>readOnly in interface Propertyprotected abstract ObservableValue<T> createReadOnly()
public String toString()
toString in class AbstractPropertyCopyright © 2021 vpc open source initiative. All rights reserved.