public interface BindingBuilder
| Modifier and Type | Method and Description |
|---|---|
<M,V> BindingBuilder |
adaptWith(Transformer<M,V> transformer)
Sets an adapter strategy based on a
Transformer. |
void |
build()
Indicates that configuration of this builder has ended and gives place to the work it needs to do to
finalize de construction.
|
<M,V> BindingBuilder |
modelToView(org.apache.commons.collections15.Transformer<M,V> transformer)
Configures the given "one-way" transformer to transform values coming from the MODEL
that will be set into the VIEW.
|
void |
observeErrors()
Observers the container, analysing if any control in this container has an error.
|
void |
observeProperty(Object model,
String propertyName)
Observes a property of a known object.
|
<M,V> BindingBuilder |
viewToModel(org.apache.commons.collections15.Transformer<V,M> transformer)
Configures the given "one-way" transformer to transform values coming from the VIEW
that will be set into the model.
|
void observeProperty(Object model, String propertyName)
model - The owner of the property to be observed.propertyName - The name of the property to observe.void observeErrors()
<M,V> BindingBuilder adaptWith(Transformer<M,V> transformer)
Transformer. As the transformer is bidirectional, it can
transform the values from the model to the value needed in the view and viceversa.
THIS IS A SHORTCUT METHOD WHEN YOU NEED TO TRANSFORM IN BOTH WAYS.
OTHERWISE USE modelToView(org.apache.commons.collections15.Transformer) and
viewToModel(org.apache.commons.collections15.Transformer)transformer - The strategy<M,V> BindingBuilder viewToModel(org.apache.commons.collections15.Transformer<V,M> transformer)
<M,V> BindingBuilder modelToView(org.apache.commons.collections15.Transformer<M,V> transformer)
void build()
Copyright © 2015 Uqbar Project. All rights reserved.