public class BindingFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkingForValueChange |
protected boolean |
usingNullForEmptyStrings |
| Constructor and Description |
|---|
BindingFactory() |
| Modifier and Type | Method and Description |
|---|---|
ObjectBinding |
bindToAction(AbstractButton button,
String action)
Binds to AbstractButton action events.
|
ObjectBinding |
bindToAction(BoundComponent component,
String action,
String boundExpression) |
ObjectBinding |
bindToAction(Component component,
String action)
Binds to a generic component.
|
ObjectBinding |
bindToCheckBox(JCheckBox component,
String property) |
ObjectBinding |
bindToComboSelection(JComboBox component,
String property,
String noSelectionValue) |
ObjectBinding |
bindToProperty(BoundComponent component,
String property,
String boundProperty) |
ObjectBinding |
bindToStateChange(AbstractButton button,
String property)
Binds to AbstractButton item state change events.
|
ObjectBinding |
bindToTable(JTable table,
String listBinding,
String[] headers,
BindingExpression[] columns,
Class[] columnClass,
boolean[] editableState,
Object[] sampleLongValues) |
ObjectBinding |
bindToTextArea(JTextArea component,
String property) |
ObjectBinding |
bindToTextField(JTextField component,
String property)
Creates a binding that updates a property on text field text changes.
|
boolean |
isCheckingForValueChange() |
boolean |
isUsingNullForEmptyStrings() |
protected ObjectBinding |
prepareBinding(BindingBase binding)
Configures binding with factory default settings.
|
void |
setCheckingForValueChange(boolean callingSetForEqual) |
void |
setUsingNullForEmptyStrings(boolean usingNullForEmptyStrings) |
protected boolean usingNullForEmptyStrings
protected boolean checkingForValueChange
public ObjectBinding bindToTable(JTable table, String listBinding, String[] headers, BindingExpression[] columns, Class[] columnClass, boolean[] editableState, Object[] sampleLongValues)
public ObjectBinding bindToProperty(BoundComponent component, String property, String boundProperty)
public ObjectBinding bindToStateChange(AbstractButton button, String property)
public ObjectBinding bindToAction(AbstractButton button, String action)
public ObjectBinding bindToAction(Component component, String action)
public ObjectBinding bindToAction(BoundComponent component, String action, String boundExpression)
public ObjectBinding bindToComboSelection(JComboBox component, String property, 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 prepareBinding(BindingBase binding)
public boolean isCheckingForValueChange()
public void setCheckingForValueChange(boolean callingSetForEqual)
public boolean isUsingNullForEmptyStrings()
public void setUsingNullForEmptyStrings(boolean usingNullForEmptyStrings)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.