public class BindingBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map |
actionsMap |
protected Object |
context |
protected BindingDelegate |
delegate |
protected BindingFactory |
factory |
| Constructor and Description |
|---|
BindingBuilder(BindingFactory factory,
Object context)
Constructs BindingBuilder with a BindingFactory and a root model object (or
context) of the binding.
|
protected BindingFactory factory
protected BindingDelegate delegate
protected Object context
protected Map actionsMap
public BindingBuilder(BindingFactory factory, Object context)
public BindingDelegate getDelegate()
public void setDelegate(BindingDelegate delegate)
public Object getContext()
public void setContext(Object context)
public BindingFactory getFactory()
public ObjectBinding bindToProperty(BoundComponent component, String property, String boundProperty)
public ObjectBinding bindToAction(BoundComponent component, String action, String boundProperty)
public ObjectBinding bindToStateChange(AbstractButton button, String property)
public ObjectBinding bindToStateChangeAndAction(AbstractButton button, String property, String action)
public ObjectBinding bindToAction(AbstractButton button, String action)
public ObjectBinding bindToAction(Component component, String action)
public ObjectBinding bindToComboSelection(JComboBox component, String property)
public ObjectBinding bindToComboSelection(JComboBox component, String property, String noSelectionValue)
public ObjectBinding bindToComboSelection(JComboBox component, String property, String action, String noSelectionValue)
public ObjectBinding bindToTextArea(JTextArea component, String property)
public ObjectBinding bindToTextField(JTextField component, String property)
public ObjectBinding bindToCheckBox(JCheckBox component, String property)
protected ObjectBinding initBinding(ObjectBinding binding, BindingDelegate delegate)
protected BindingDelegate getActionDelegate(String action)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.