@DefaultNonNull public final class ComponentPropertyBinding extends Object implements IBinding
| Constructor and Description |
|---|
ComponentPropertyBinding(NodeBase control,
String controlProperty) |
| Modifier and Type | Method and Description |
|---|---|
ComponentPropertyBinding |
convert(IBindingConverter<?,?> converter) |
UIMessage |
getBindError()
If this binding is in error: return the message describing that error.
|
BindingValuePair<?,?> |
getBindingDifference()
Move the control value to wherever it's needed.
|
IValueAccessor<?> |
getControlProperty() |
Object |
getInstance() |
IValueAccessor<?> |
getInstanceProperty() |
void |
moveModelToControl() |
<T> void |
setModelValue(T value)
Put the specified value into the bound model property.
|
void |
to(IBindingListener<?> listener) |
<T,V> void |
to(T instance,
IValueAccessor<V> pmm)
Bind to a IValueAccessor and the given instance.
|
<T> void |
to(T instance,
String property) |
String |
toString() |
@Nonnull public ComponentPropertyBinding convert(@Nullable IBindingConverter<?,?> converter)
public void to(@Nonnull IBindingListener<?> listener)
public <T> void to(@Nonnull T instance, @Nonnull String property) throws Exception
Exceptionpublic <T,V> void to(@Nonnull T instance, @Nonnull IValueAccessor<V> pmm) throws Exception
instance - pmm - Exception@Nullable public UIMessage getBindError()
getBindError in interface IBinding@Nonnull public IValueAccessor<?> getControlProperty()
@Nullable public IValueAccessor<?> getInstanceProperty()
public <T> void setModelValue(@Nullable T value)
IBindingsetModelValue in interface IBindingT - value - @Nullable public BindingValuePair<?,?> getBindingDifference() throws Exception
getBindingDifference in interface IBindingExceptionpublic void moveModelToControl()
throws Exception
moveModelToControl in interface IBindingExceptionCopyright © 2017 etc.to. All rights reserved.