|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tbee.swing.binding.BindingUtils
public class BindingUtils
TODO: can we use a fluent interface? like BindingUtils.bind(x).property("a").to(comp);
| Nested Class Summary | |
|---|---|
static class |
BindingUtils.Binding
Implements the fluent interface example: BindingUtils.bind(iBeanAdapter, Sellorder.PAYMENTAGREEMENT_PROPERTY_ID).to(lPaymentagreementJTextArea); TODO: this is just a first attempt, it works, but is not riped |
static class |
BindingUtils.BindingInfo
Binding info |
static class |
BindingUtils.DummyEntity
This is a class to serve as a wrapper to catch value changes |
| Field Summary | |
|---|---|
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
BindingUtils()
|
|
| Method Summary | |
|---|---|
static BindingUtils.Binding |
bind(com.jgoodies.binding.beans.BeanAdapter ba,
java.lang.String propertyName)
|
static void |
bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.awt.Component component)
also set the name of the component based on the linked bean property |
static void |
bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.awt.Component component,
java.lang.String componentProperty)
also set the name of the component based on the linked bean property |
static void |
bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
JButtonGroup buttonGroup)
|
static void |
bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
JButtonGroup buttonGroup,
java.lang.String property)
also set the name of the component based on the linked bean property |
static void |
bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.beans.PropertyChangeListener pcl)
have a PCL react to changes (when there is no property to bind to) |
static void |
bind(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
Bind two properties and do not update any |
static void |
bind(com.jgoodies.binding.value.ValueModel valueModel,
java.awt.Component component)
Bind a property of a component to a valueModel. |
static void |
bind(com.jgoodies.binding.value.ValueModel valueModel,
java.awt.Component component,
java.lang.String property)
Bind a property of a component to a valueModel. |
static void |
bind(com.jgoodies.binding.value.ValueModel valueModel,
JButtonGroup buttonGroup,
java.lang.String property)
Bind a property of a ButtonGroup to a valueModel. |
static void |
bindAndUpdate1(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
Bind two properties and updated the first set |
static void |
bindAndUpdate2(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
Bind two properties and updated the second set |
static void |
bindComboboxToValueModel(javax.swing.JComboBox jcombobox,
com.jgoodies.binding.value.ValueModel valueModel,
boolean allowNull)
Bind a combobox to a valueModel |
static void |
bindJdbcComboboxToValueModel(javax.swing.JComboBox jcombobox,
com.jgoodies.binding.value.ValueModel valueModel,
boolean allowNull)
Bind a combobox that uses the JdbcComboboxModel to a valueModel |
static BindingUtils.BindingInfo |
getBindingInfo(java.awt.Component c)
|
static void |
storeBindingInfo(java.awt.Component component,
com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCECODE_VERSION
| Constructor Detail |
|---|
public BindingUtils()
| Method Detail |
|---|
public static void bind(com.jgoodies.binding.value.ValueModel valueModel,
java.awt.Component component)
valueModel - component -
public static void bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.awt.Component component)
public static void bind(com.jgoodies.binding.value.ValueModel valueModel,
java.awt.Component component,
java.lang.String property)
valueModel - component - property - of component
public static void bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.awt.Component component,
java.lang.String componentProperty)
public static void bind(com.jgoodies.binding.value.ValueModel valueModel,
JButtonGroup buttonGroup,
java.lang.String property)
valueModel - buttonGroup -
public static void bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
JButtonGroup buttonGroup,
java.lang.String property)
public static void bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
JButtonGroup buttonGroup)
public static void bind(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
public static void bindAndUpdate1(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
public static void bindAndUpdate2(java.awt.Component component1,
java.lang.String property1,
java.awt.Component component2,
java.lang.String property2)
public static void bind(com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty,
java.beans.PropertyChangeListener pcl)
public static void bindComboboxToValueModel(javax.swing.JComboBox jcombobox,
com.jgoodies.binding.value.ValueModel valueModel,
boolean allowNull)
jcombobox - valueModel - allowNull - allow nulls to be set into the value model
public static void bindJdbcComboboxToValueModel(javax.swing.JComboBox jcombobox,
com.jgoodies.binding.value.ValueModel valueModel,
boolean allowNull)
jcombobox - valueModel - allowNull - allow nulls to be set into the value modelpublic static BindingUtils.BindingInfo getBindingInfo(java.awt.Component c)
public static void storeBindingInfo(java.awt.Component component,
com.jgoodies.binding.beans.BeanAdapter beanAdapter,
java.lang.String beanProperty)
component - beanAdapter - beanProperty -
public static BindingUtils.Binding bind(com.jgoodies.binding.beans.BeanAdapter ba,
java.lang.String propertyName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||