Package org.jdesktop.swingbinding
Class SwingBindings
- java.lang.Object
-
- org.jdesktop.swingbinding.SwingBindings
-
public class SwingBindings extends Object
A factory class for creating instances of the custom SwingBindingimplementations provided by this package. See the package summary for full details on binding to Swing components.- Author:
- Shannon Hickey
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> JComboBoxBinding<E,List<E>,JComboBox>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox)Creates aJComboBoxBindingfrom direct references to aListandJComboBox.static <E> JComboBoxBinding<E,List<E>,JComboBox>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox, String name)Creates a namedJComboBoxBindingfrom direct references to aListandJComboBox.static <E,TS>
JComboBoxBinding<E,List<E>,TS>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JComboBox> targetJComboBoxProperty)Creates aJComboBoxBindingfrom a direct reference to aListand 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 namedJComboBoxBindingfrom a direct reference to aListand 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 aJComboBoxBindingfrom an object and property that resolves to aListand 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 namedJComboBoxBindingfrom an object and property that resolves to aListand 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 aJComboBoxBindingfrom an object and property that resolves to aListand 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 namedJComboBoxBindingfrom an object and property that resolves to aListand 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 aJListBindingfrom direct references to aListandJList.static <E> JListBinding<E,List<E>,JList>createJListBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList, String name)Creates a namedJListBindingfrom direct references to aListandJList.static <E,TS>
JListBinding<E,List<E>,TS>createJListBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JList> targetJListProperty)Creates aJListBindingfrom a direct reference to aListand 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 namedJListBindingfrom a direct reference to aListand 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 aJListBindingfrom an object and property that resolves to aListand 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 namedJListBindingfrom an object and property that resolves to aListand 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 aJListBindingfrom an object and property that resolves to aListand 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 namedJListBindingfrom an object and property that resolves to aListand 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 aJTableBindingfrom direct references to aListandJTable.static <E> JTableBinding<E,List<E>,JTable>createJTableBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable, String name)Creates a namedJTableBindingfrom direct references to aListandJTable.static <E,TS>
JTableBinding<E,List<E>,TS>createJTableBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JTable> targetJTableProperty)Creates aJTableBindingfrom a direct reference to aListand 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 namedJTableBindingfrom a direct reference to aListand 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 aJTableBindingfrom an object and property that resolves to aListand 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 namedJTableBindingfrom an object and property that resolves to aListand 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 aJTableBindingfrom an object and property that resolves to aListand 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 namedJTableBindingfrom an object and property that resolves to aListand an object and property that resolves to aJTable.
-
-
-
Method Detail
-
createJListBinding
public static <E> JListBinding<E,List<E>,JList> createJListBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList)
Creates aJListBindingfrom direct references to aListandJList.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJList- the targetJList- Returns:
- the
JTableBinding
-
createJListBinding
public static <E> JListBinding<E,List<E>,JList> createJListBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JList targetJList, String name)
Creates a namedJListBindingfrom direct references to aListandJList.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJList- the targetJList- Returns:
- the
JListBinding
-
createJListBinding
public static <E,SS> JListBinding<E,SS,JList> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JList targetJList)
Creates aJListBindingfrom an object and property that resolves to aListand a direct reference to aJList.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJList- the targetJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJListBinding
public static <E,SS> JListBinding<E,SS,JList> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JList targetJList, String name)
Creates a namedJListBindingfrom an object and property that resolves to aListand a direct reference to aJList.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJList- the targetJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJListBinding
public static <E,TS> JListBinding<E,List<E>,TS> createJListBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JList> targetJListProperty)
Creates aJListBindingfrom a direct reference to aListand an object and property that resolves to aJList.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJListProperty- a property on the target object that resolves to aJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- iftargetJListPropertyisnull
-
createJListBinding
public 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 namedJListBindingfrom a direct reference to aListand an object and property that resolves to aJList.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJListProperty- a property on the target object that resolves to aJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- iftargetJListPropertyisnull
-
createJListBinding
public 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 aJListBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJListProperty- a property on the target object that resolves to aJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJListPropertyisnull
-
createJListBinding
public 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 namedJListBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJListProperty- a property on the target object that resolves to aJList- Returns:
- the
JListBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJListPropertyisnull
-
createJTableBinding
public static <E> JTableBinding<E,List<E>,JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable)
Creates aJTableBindingfrom direct references to aListandJTable.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJTable- the targetJTable- Returns:
- the
JTableBinding
-
createJTableBinding
public static <E> JTableBinding<E,List<E>,JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JTable targetJTable, String name)
Creates a namedJTableBindingfrom direct references to aListandJTable.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJTable- the targetJTable- Returns:
- the
JTableBinding
-
createJTableBinding
public static <E,SS> JTableBinding<E,SS,JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JTable targetJTable)
Creates aJTableBindingfrom an object and property that resolves to aListand a direct reference to aJTable.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJTable- the targetJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJTableBinding
public static <E,SS> JTableBinding<E,SS,JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JTable targetJTable, String name)
Creates a namedJTableBindingfrom an object and property that resolves to aListand a direct reference to aJTable.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJTable- the targetJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJTableBinding
public static <E,TS> JTableBinding<E,List<E>,TS> createJTableBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JTable> targetJTableProperty)
Creates aJTableBindingfrom a direct reference to aListand an object and property that resolves to aJTable.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJTableProperty- a property on the target object that resolves to aJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- iftargetJTablePropertyisnull
-
createJTableBinding
public 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 namedJTableBindingfrom a direct reference to aListand an object and property that resolves to aJTable.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJTableProperty- a property on the target object that resolves to aJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- iftargetJTablePropertyisnull
-
createJTableBinding
public 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 aJTableBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJTableProperty- a property on the target object that resolves to aJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJTablePropertyisnull
-
createJTableBinding
public 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 namedJTableBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJTableProperty- a property on the target object that resolves to aJTable- Returns:
- the
JTableBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJTablePropertyisnull
-
createJComboBoxBinding
public static <E> JComboBoxBinding<E,List<E>,JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox)
Creates aJComboBoxBindingfrom direct references to aListandJComboBox.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJComboBox- the targetJComboBox- Returns:
- the
JComboBoxBinding
-
createJComboBoxBinding
public static <E> JComboBoxBinding<E,List<E>,JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, JComboBox targetJComboBox, String name)
Creates a namedJComboBoxBindingfrom direct references to aListandJComboBox.- Parameters:
strategy- the update strategysourceList- the sourceListtargetJComboBox- the targetJComboBox- Returns:
- the
JComboBoxBinding
-
createJComboBoxBinding
public static <E,SS> JComboBoxBinding<E,SS,JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JComboBox targetJComboBox)
Creates aJComboBoxBindingfrom an object and property that resolves to aListand a direct reference to aJComboBox.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJComboBox- the targetJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJComboBoxBinding
public static <E,SS> JComboBoxBinding<E,SS,JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,List<E>> sourceListProperty, JComboBox targetJComboBox, String name)
Creates a namedJComboBoxBindingfrom an object and property that resolves to aListand a direct reference to aJComboBox.- Parameters:
strategy- the update strategysourceObject- the source objectsourceListProperty- a property on the source object that resolves to aListtargetJComboBox- the targetJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- ifsourceListPropertyisnull
-
createJComboBoxBinding
public static <E,TS> JComboBoxBinding<E,List<E>,TS> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, List<E> sourceList, TS targetObject, Property<TS,? extends JComboBox> targetJComboBoxProperty)
Creates aJComboBoxBindingfrom a direct reference to aListand an object and property that resolves to aJComboBox.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJComboBoxProperty- a property on the target object that resolves to aJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- iftargetJComboBoxPropertyisnull
-
createJComboBoxBinding
public 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 namedJComboBoxBindingfrom a direct reference to aListand an object and property that resolves to aJComboBox.- Parameters:
strategy- the update strategysourceList- the sourceListtargetObject- the target objecttargetJComboBoxProperty- a property on the target object that resolves to aJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- iftargetJComboBoxPropertyisnull
-
createJComboBoxBinding
public 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 aJComboBoxBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJComboBoxProperty- a property on the target object that resolves to aJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJComboBoxPropertyisnull
-
createJComboBoxBinding
public 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 namedJComboBoxBindingfrom an object and property that resolves to aListand 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 aListtargetObject- the target objecttargetJComboBoxProperty- a property on the target object that resolves to aJComboBox- Returns:
- the
JComboBoxBinding - Throws:
IllegalArgumentException- ifsourceListPropertyortargetJComboBoxPropertyisnull
-
-