public class Binding<M,V extends Widget,C extends WidgetBuilder> extends Object
Transformer que permite ajustar las diferencias entre los valores manejados por
modelo y vista.| Constructor and Description |
|---|
Binding(Observable<M> model,
ViewObservable<V,C> view)
Constructor con un adapter por default.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(C control) |
Binding<M,V,C> |
notEmpty()
Specifies that the output of this binding will be a boolean telling if the string input value is not
null or empty.
|
Binding<M,V,C> |
notNull() |
Binding<M,V,C> |
setAdapter(Adapter adapter)
This is the most general way to set the strategy that adapts the values in the model to the values in
the view.
|
Binding<M,V,C> |
setModelToView(org.apache.commons.collections15.Transformer<M,?> transformer) |
Binding<M,V,C> |
setTransformer(Transformer<?,?> transformer)
Asigna la estrategia que determina la forma de transformar los valores provenientes del modelo al
formato requerido por la vista y viceversa.
|
Binding<M,V,C> |
setView(ViewObservable<V,C> view) |
Binding<M,V,C> |
setViewToModel(org.apache.commons.collections15.Transformer<?,M> transformer) |
public Binding(Observable<M> model, ViewObservable<V,C> view)
public Binding<M,V,C> setTransformer(Transformer<?,?> transformer)
setAdapter(Adapter) and
setTransformer(Transformer).transformer - Un TransformerBindingBuilder, para encadenar mensajes.public Binding<M,V,C> setModelToView(org.apache.commons.collections15.Transformer<M,?> transformer)
public Binding<M,V,C> setViewToModel(org.apache.commons.collections15.Transformer<?,M> transformer)
public Binding<M,V,C> setAdapter(Adapter adapter)
adapter - the adapter to setpublic void execute(C control)
public Binding<M,V,C> notEmpty()
Copyright © 2015 Uqbar Project. All rights reserved.