Package org.jdesktop.beansbinding
Class Bindings
- java.lang.Object
-
- org.jdesktop.beansbinding.Bindings
-
public class Bindings extends Object
A factory class for creating instances of the concreteBindingimplementations provided by this package.- Author:
- Shannon Hickey
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <SS,SV,TS,TV>
AutoBinding<SS,SV,TS,TV>createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,SV> sourceProperty, TS targetObject, Property<TS,TV> targetProperty)Creates an instance ofAutoBindingthat binds a property of a source object to a property of a target object.static <SS,SV,TS,TV>
AutoBinding<SS,SV,TS,TV>createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,SV> sourceProperty, TS targetObject, Property<TS,TV> targetProperty, String name)Creates a named instance ofAutoBindingthat binds a property of a source object to a property of a target object.static <SS,TS,TV>
AutoBinding<SS,SS,TS,TV>createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, TS targetObject, Property<TS,TV> targetProperty)Creates an instance ofAutoBindingthat binds a source object to a property of a target object.static <SS,TS,TV>
AutoBinding<SS,SS,TS,TV>createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, TS targetObject, Property<TS,TV> targetProperty, String name)Creates a named instance ofAutoBindingthat binds a source object to a property of a target object.
-
-
-
Method Detail
-
createAutoBinding
public static <SS,TS,TV> AutoBinding<SS,SS,TS,TV> createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, TS targetObject, Property<TS,TV> targetProperty)
Creates an instance ofAutoBindingthat binds a source object to a property of a target object. TheAutoBinding'ssource property is set to an instance ofObjectPropertyso that the source object is used directly, rather than some property of the source object.- Parameters:
strategy- the update strategy for the bindingsourceObject- the source objecttargetObject- the target objecttargetProperty- the target property- Returns:
- an
AutoBindingthat binds the source object to the target property of the target object - Throws:
IllegalArgumentException- if the update strategy or target property isnull
-
createAutoBinding
public static <SS,TS,TV> AutoBinding<SS,SS,TS,TV> createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, TS targetObject, Property<TS,TV> targetProperty, String name)
Creates a named instance ofAutoBindingthat binds a source object to a property of a target object. TheAutoBinding'ssource property is set to an instance ofObjectPropertyso that the source object is used directly, rather than some property of the source object.- Parameters:
strategy- the update strategy for the bindingsourceObject- the source objecttargetObject- the target objecttargetProperty- the target propertyname- a name for the binding- Returns:
- an
AutoBindingthat binds the source object to the target property of the target object - Throws:
IllegalArgumentException- if the update strategy or target property isnull
-
createAutoBinding
public static <SS,SV,TS,TV> AutoBinding<SS,SV,TS,TV> createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,SV> sourceProperty, TS targetObject, Property<TS,TV> targetProperty)
Creates an instance ofAutoBindingthat binds a property of a source object to a property of a target object.- Parameters:
strategy- the update strategy for the bindingsourceObject- the source objectsourceProperty- the source propertytargetObject- the target objecttargetProperty- the target property- Returns:
- an
AutoBindingthat binds the source object to the target property of the target object - Throws:
IllegalArgumentException- if the update strategy, source property or target property isnull
-
createAutoBinding
public static <SS,SV,TS,TV> AutoBinding<SS,SV,TS,TV> createAutoBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,SV> sourceProperty, TS targetObject, Property<TS,TV> targetProperty, String name)
Creates a named instance ofAutoBindingthat binds a property of a source object to a property of a target object.- Parameters:
strategy- the update strategy for the bindingsourceObject- the source objectsourceProperty- the source propertytargetObject- the target objecttargetProperty- the target propertyname- a name for the binding- Returns:
- an
AutoBindingthat binds the source object to the target property of the target object - Throws:
IllegalArgumentException- if the update strategy, source property or target property isnull
-
-