Package org.jdesktop.swingbinding
Class SwingBindings
java.lang.Object
org.jdesktop.swingbinding.SwingBindings
A factory class for creating instances of the custom Swing
Binding
implementations provided by this package. See the
package summary for full details on
binding to Swing components.-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> JComboBoxBinding<E,
List<E>, JComboBox> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox) Creates aJComboBoxBinding
from direct references to aList
andJComboBox
.static <E> JComboBoxBinding<E,
List<E>, JComboBox> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox, String name) Creates a namedJComboBoxBinding
from direct references to aList
andJComboBox
.static <E,
TS> JComboBoxBinding<E, List<E>, TS> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty) Creates aJComboBoxBinding
from a direct reference to aList
and an object and property that resolves to aJComboBox
.static <E,
TS> JComboBoxBinding<E, List<E>, TS> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty, String name) Creates a namedJComboBoxBinding
from a direct reference to aList
and an object and property that resolves to aJComboBox
.static <E,
SS> JComboBoxBinding<E, SS, JComboBox> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JComboBox targetJComboBox) Creates aJComboBoxBinding
from an object and property that resolves to aList
and a direct reference to aJComboBox
.static <E,
SS> JComboBoxBinding<E, SS, JComboBox> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JComboBox targetJComboBox, String name) Creates a namedJComboBoxBinding
from an object and property that resolves to aList
and a direct reference to aJComboBox
.static <E,
SS, TS> JComboBoxBinding<E, SS, TS> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty) Creates aJComboBoxBinding
from an object and property that resolves to aList
and an object and property that resolves to aJComboBox
.static <E,
SS, TS> JComboBoxBinding<E, SS, TS> createJComboBoxBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty, String name) Creates a namedJComboBoxBinding
from an object and property that resolves to aList
and an object and property that resolves to aJComboBox
.static <E> JListBinding<E,
List<E>, JList> createJListBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList) Creates aJListBinding
from direct references to aList
andJList
.static <E> JListBinding<E,
List<E>, JList> createJListBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList, String name) Creates a namedJListBinding
from direct references to aList
andJList
.static <E,
TS> JListBinding<E, List<E>, TS> createJListBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JList> targetJListProperty) Creates aJListBinding
from a direct reference to aList
and an object and property that resolves to aJList
.static <E,
TS> JListBinding<E, List<E>, TS> createJListBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JList> targetJListProperty, String name) Creates a namedJListBinding
from a direct reference to aList
and an object and property that resolves to aJList
.static <E,
SS> JListBinding<E, SS, JList> createJListBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JList targetJList) Creates aJListBinding
from an object and property that resolves to aList
and a direct reference to aJList
.static <E,
SS> JListBinding<E, SS, JList> createJListBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JList targetJList, String name) Creates a namedJListBinding
from an object and property that resolves to aList
and a direct reference to aJList
.static <E,
SS, TS> JListBinding<E, SS, TS> createJListBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JList> targetJListProperty) Creates aJListBinding
from an object and property that resolves to aList
and an object and property that resolves to aJList
.static <E,
SS, TS> JListBinding<E, SS, TS> createJListBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JList> targetJListProperty, String name) Creates a namedJListBinding
from an object and property that resolves to aList
and an object and property that resolves to aJList
.static <E> JTableBinding<E,
List<E>, JTable> createJTableBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable) Creates aJTableBinding
from direct references to aList
andJTable
.static <E> JTableBinding<E,
List<E>, JTable> createJTableBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable, String name) Creates a namedJTableBinding
from direct references to aList
andJTable
.static <E,
TS> JTableBinding<E, List<E>, TS> createJTableBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty) Creates aJTableBinding
from a direct reference to aList
and an object and property that resolves to aJTable
.static <E,
TS> JTableBinding<E, List<E>, TS> createJTableBinding
(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty, String name) Creates a namedJTableBinding
from a direct reference to aList
and an object and property that resolves to aJTable
.static <E,
SS> JTableBinding<E, SS, JTable> createJTableBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JTable targetJTable) Creates aJTableBinding
from an object and property that resolves to aList
and a direct reference to aJTable
.static <E,
SS> JTableBinding<E, SS, JTable> createJTableBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JTable targetJTable, String name) Creates a namedJTableBinding
from an object and property that resolves to aList
and a direct reference to aJTable
.static <E,
SS, TS> JTableBinding<E, SS, TS> createJTableBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty) Creates aJTableBinding
from an object and property that resolves to aList
and an object and property that resolves to aJTable
.static <E,
SS, TS> JTableBinding<E, SS, TS> createJTableBinding
(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty, String name) Creates a namedJTableBinding
from an object and property that resolves to aList
and an object and property that resolves to aJTable
.
-
Method Details
-
createJListBinding
public static <E> JListBinding<E,List<E>, createJListBindingJList> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList) Creates aJListBinding
from direct references to aList
andJList
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJList
- the targetJList
- Returns:
- the
JTableBinding
-
createJListBinding
public static <E> JListBinding<E,List<E>, createJListBindingJList> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList, String name) Creates a namedJListBinding
from direct references to aList
andJList
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJList
- the targetJList
- Returns:
- the
JListBinding
-
createJListBinding
public static <E,SS> JListBinding<E,SS, createJListBindingJList> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JList targetJList) Creates aJListBinding
from an object and property that resolves to aList
and a direct reference to aJList
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJList
- the targetJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJListBinding
public static <E,SS> JListBinding<E,SS, createJListBindingJList> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JList targetJList, String name) Creates a namedJListBinding
from an object and property that resolves to aList
and a direct reference to aJList
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJList
- the targetJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJListBinding
public static <E,TS> JListBinding<E,List<E>, createJListBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JList> targetJListProperty) Creates aJListBinding
from a direct reference to aList
and an object and property that resolves to aJList
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJListProperty
- a property on the target object that resolves to aJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- iftargetJListProperty
isnull
-
createJListBinding
public static <E,TS> JListBinding<E,List<E>, createJListBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JList> targetJListProperty, String name) Creates a namedJListBinding
from a direct reference to aList
and an object and property that resolves to aJList
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJListProperty
- a property on the target object that resolves to aJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- iftargetJListProperty
isnull
-
createJListBinding
public static <E,SS, JListBinding<E,TS> SS, createJListBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JList> targetJListProperty) Creates aJListBinding
from an object and property that resolves to aList
and an object and property that resolves to aJList
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJListProperty
- a property on the target object that resolves to aJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJListProperty
isnull
-
createJListBinding
public static <E,SS, JListBinding<E,TS> SS, createJListBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JList> targetJListProperty, String name) Creates a namedJListBinding
from an object and property that resolves to aList
and an object and property that resolves to aJList
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJListProperty
- a property on the target object that resolves to aJList
- Returns:
- the
JListBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJListProperty
isnull
-
createJTableBinding
public static <E> JTableBinding<E,List<E>, createJTableBindingJTable> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable) Creates aJTableBinding
from direct references to aList
andJTable
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJTable
- the targetJTable
- Returns:
- the
JTableBinding
-
createJTableBinding
public static <E> JTableBinding<E,List<E>, createJTableBindingJTable> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable, String name) Creates a namedJTableBinding
from direct references to aList
andJTable
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJTable
- the targetJTable
- Returns:
- the
JTableBinding
-
createJTableBinding
public static <E,SS> JTableBinding<E,SS, createJTableBindingJTable> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JTable targetJTable) Creates aJTableBinding
from an object and property that resolves to aList
and a direct reference to aJTable
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJTable
- the targetJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJTableBinding
public static <E,SS> JTableBinding<E,SS, createJTableBindingJTable> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JTable targetJTable, String name) Creates a namedJTableBinding
from an object and property that resolves to aList
and a direct reference to aJTable
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJTable
- the targetJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJTableBinding
public static <E,TS> JTableBinding<E,List<E>, createJTableBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty) Creates aJTableBinding
from a direct reference to aList
and an object and property that resolves to aJTable
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJTableProperty
- a property on the target object that resolves to aJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- iftargetJTableProperty
isnull
-
createJTableBinding
public static <E,TS> JTableBinding<E,List<E>, createJTableBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty, String name) Creates a namedJTableBinding
from a direct reference to aList
and an object and property that resolves to aJTable
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJTableProperty
- a property on the target object that resolves to aJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- iftargetJTableProperty
isnull
-
createJTableBinding
public static <E,SS, JTableBinding<E,TS> SS, createJTableBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty) Creates aJTableBinding
from an object and property that resolves to aList
and an object and property that resolves to aJTable
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJTableProperty
- a property on the target object that resolves to aJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJTableProperty
isnull
-
createJTableBinding
public static <E,SS, JTableBinding<E,TS> SS, createJTableBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JTable> targetJTableProperty, String name) Creates a namedJTableBinding
from an object and property that resolves to aList
and an object and property that resolves to aJTable
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJTableProperty
- a property on the target object that resolves to aJTable
- Returns:
- the
JTableBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJTableProperty
isnull
-
createJComboBoxBinding
public static <E> JComboBoxBinding<E,List<E>, createJComboBoxBindingJComboBox> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox) Creates aJComboBoxBinding
from direct references to aList
andJComboBox
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJComboBox
- the targetJComboBox
- Returns:
- the
JComboBoxBinding
-
createJComboBoxBinding
public static <E> JComboBoxBinding<E,List<E>, createJComboBoxBindingJComboBox> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox, String name) Creates a namedJComboBoxBinding
from direct references to aList
andJComboBox
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetJComboBox
- the targetJComboBox
- Returns:
- the
JComboBoxBinding
-
createJComboBoxBinding
public static <E,SS> JComboBoxBinding<E,SS, createJComboBoxBindingJComboBox> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JComboBox targetJComboBox) Creates aJComboBoxBinding
from an object and property that resolves to aList
and a direct reference to aJComboBox
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJComboBox
- the targetJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJComboBoxBinding
public static <E,SS> JComboBoxBinding<E,SS, createJComboBoxBindingJComboBox> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, JComboBox targetJComboBox, String name) Creates a namedJComboBoxBinding
from an object and property that resolves to aList
and a direct reference to aJComboBox
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetJComboBox
- the targetJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
isnull
-
createJComboBoxBinding
public static <E,TS> JComboBoxBinding<E,List<E>, createJComboBoxBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty) Creates aJComboBoxBinding
from a direct reference to aList
and an object and property that resolves to aJComboBox
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJComboBoxProperty
- a property on the target object that resolves to aJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- iftargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,TS> JComboBoxBinding<E,List<E>, createJComboBoxBindingTS> (AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty, String name) Creates a namedJComboBoxBinding
from a direct reference to aList
and an object and property that resolves to aJComboBox
.- Parameters:
strategy
- the update strategysourceList
- the sourceList
targetObject
- the target objecttargetJComboBoxProperty
- a property on the target object that resolves to aJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- iftargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,SS, JComboBoxBinding<E,TS> SS, createJComboBoxBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty) Creates aJComboBoxBinding
from an object and property that resolves to aList
and an object and property that resolves to aJComboBox
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJComboBoxProperty
- a property on the target object that resolves to aJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,SS, JComboBoxBinding<E,TS> SS, createJComboBoxBindingTS> (AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS, List<E>> sourceListProperty, TS targetObject, Property<TS, ? extends JComboBox> targetJComboBoxProperty, String name) Creates a namedJComboBoxBinding
from an object and property that resolves to aList
and an object and property that resolves to aJComboBox
.- Parameters:
strategy
- the update strategysourceObject
- the source objectsourceListProperty
- a property on the source object that resolves to aList
targetObject
- the target objecttargetJComboBoxProperty
- a property on the target object that resolves to aJComboBox
- Returns:
- the
JComboBoxBinding
- Throws:
IllegalArgumentException
- ifsourceListProperty
ortargetJComboBoxProperty
isnull
-