Package org.jdesktop.swingbinding
Class SwingBindings
- java.lang.Object
-
- org.jdesktop.swingbinding.SwingBindings
-
public class SwingBindings extends java.lang.Object
A factory class for creating instances of the custom SwingBinding
implementations provided by this package. See the package summary for full details on binding to Swing components.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> JComboBoxBinding<E,java.util.List<E>,javax.swing.JComboBox>
createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JComboBox targetJComboBox)
Creates aJComboBoxBinding
from direct references to aList
andJComboBox
.static <E> JComboBoxBinding<E,java.util.List<E>,javax.swing.JComboBox>
createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JComboBox targetJComboBox, java.lang.String name)
Creates a namedJComboBoxBinding
from direct references to aList
andJComboBox
.static <E,TS>
JComboBoxBinding<E,java.util.List<E>,TS>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JComboBox> targetJComboBoxProperty)
Creates aJComboBoxBinding
from a direct reference to aList
and an object and property that resolves to aJComboBox
.static <E,TS>
JComboBoxBinding<E,java.util.List<E>,TS>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JComboBox> targetJComboBoxProperty, java.lang.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,javax.swing.JComboBox>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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,javax.swing.JComboBox>createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JComboBox targetJComboBox, java.lang.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JComboBox> targetJComboBoxProperty, java.lang.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,java.util.List<E>,javax.swing.JList>
createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JList targetJList)
Creates aJListBinding
from direct references to aList
andJList
.static <E> JListBinding<E,java.util.List<E>,javax.swing.JList>
createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JList targetJList, java.lang.String name)
Creates a namedJListBinding
from direct references to aList
andJList
.static <E,TS>
JListBinding<E,java.util.List<E>,TS>createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JList> targetJListProperty)
Creates aJListBinding
from a direct reference to aList
and an object and property that resolves to aJList
.static <E,TS>
JListBinding<E,java.util.List<E>,TS>createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JList> targetJListProperty, java.lang.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,javax.swing.JList>createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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,javax.swing.JList>createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JList targetJList, java.lang.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JList> targetJListProperty, java.lang.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,java.util.List<E>,javax.swing.JTable>
createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JTable targetJTable)
Creates aJTableBinding
from direct references to aList
andJTable
.static <E> JTableBinding<E,java.util.List<E>,javax.swing.JTable>
createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JTable targetJTable, java.lang.String name)
Creates a namedJTableBinding
from direct references to aList
andJTable
.static <E,TS>
JTableBinding<E,java.util.List<E>,TS>createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JTable> targetJTableProperty)
Creates aJTableBinding
from a direct reference to aList
and an object and property that resolves to aJTable
.static <E,TS>
JTableBinding<E,java.util.List<E>,TS>createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JTable> targetJTableProperty, java.lang.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,javax.swing.JTable>createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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,javax.swing.JTable>createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JTable targetJTable, java.lang.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JTable> targetJTableProperty, java.lang.String name)
Creates a namedJTableBinding
from an object and property that resolves to aList
and an object and property that resolves to aJTable
.
-
-
-
Method Detail
-
createJListBinding
public static <E> JListBinding<E,java.util.List<E>,javax.swing.JList> createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.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,java.util.List<E>,javax.swing.JList> createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JList targetJList, java.lang.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,javax.swing.JList> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJListBinding
public static <E,SS> JListBinding<E,SS,javax.swing.JList> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JList targetJList, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJListBinding
public static <E,TS> JListBinding<E,java.util.List<E>,TS> createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- iftargetJListProperty
isnull
-
createJListBinding
public static <E,TS> JListBinding<E,java.util.List<E>,TS> createJListBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JList> targetJListProperty, java.lang.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:
java.lang.IllegalArgumentException
- iftargetJListProperty
isnull
-
createJListBinding
public static <E,SS,TS> JListBinding<E,SS,TS> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJListProperty
isnull
-
createJListBinding
public static <E,SS,TS> JListBinding<E,SS,TS> createJListBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JList> targetJListProperty, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJListProperty
isnull
-
createJTableBinding
public static <E> JTableBinding<E,java.util.List<E>,javax.swing.JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.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,java.util.List<E>,javax.swing.JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JTable targetJTable, java.lang.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,javax.swing.JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJTableBinding
public static <E,SS> JTableBinding<E,SS,javax.swing.JTable> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JTable targetJTable, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJTableBinding
public static <E,TS> JTableBinding<E,java.util.List<E>,TS> createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- iftargetJTableProperty
isnull
-
createJTableBinding
public static <E,TS> JTableBinding<E,java.util.List<E>,TS> createJTableBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JTable> targetJTableProperty, java.lang.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:
java.lang.IllegalArgumentException
- iftargetJTableProperty
isnull
-
createJTableBinding
public static <E,SS,TS> JTableBinding<E,SS,TS> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJTableProperty
isnull
-
createJTableBinding
public static <E,SS,TS> JTableBinding<E,SS,TS> createJTableBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JTable> targetJTableProperty, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJTableProperty
isnull
-
createJComboBoxBinding
public static <E> JComboBoxBinding<E,java.util.List<E>,javax.swing.JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.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,java.util.List<E>,javax.swing.JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, javax.swing.JComboBox targetJComboBox, java.lang.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,javax.swing.JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJComboBoxBinding
public static <E,SS> JComboBoxBinding<E,SS,javax.swing.JComboBox> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, javax.swing.JComboBox targetJComboBox, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
isnull
-
createJComboBoxBinding
public static <E,TS> JComboBoxBinding<E,java.util.List<E>,TS> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- iftargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,TS> JComboBoxBinding<E,java.util.List<E>,TS> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, java.util.List<E> sourceList, TS targetObject, Property<TS,? extends javax.swing.JComboBox> targetJComboBoxProperty, java.lang.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:
java.lang.IllegalArgumentException
- iftargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,SS,TS> JComboBoxBinding<E,SS,TS> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJComboBoxProperty
isnull
-
createJComboBoxBinding
public static <E,SS,TS> JComboBoxBinding<E,SS,TS> createJComboBoxBinding(AutoBinding.UpdateStrategy strategy, SS sourceObject, Property<SS,java.util.List<E>> sourceListProperty, TS targetObject, Property<TS,? extends javax.swing.JComboBox> targetJComboBoxProperty, java.lang.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:
java.lang.IllegalArgumentException
- ifsourceListProperty
ortargetJComboBoxProperty
isnull
-
-