Class Bindings
- java.lang.Object
-
- it.tidalwave.thesefoolishthings.examples.dci.swing.swing.Bindings
-
public final class Bindings extends java.lang.Object
A facility to bind some Swing components to data.- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description Bindings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
bind(org.jdesktop.beansbinding.BindingGroup bindings, java.lang.Object datum, javax.swing.JList jList)
Binds a source to aJList
.static <T> void
bind(org.jdesktop.beansbinding.BindingGroup bindings, java.lang.Object datum, javax.swing.JTable jTable)
Binds a source to aJTable
.
-
-
-
Method Detail
-
bind
public static void bind(@Nonnull org.jdesktop.beansbinding.BindingGroup bindings, @Nonnull java.lang.Object datum, @Nonnull javax.swing.JList jList)
Binds a source to aJList
. Two roles are used:ObservableListProvider
to retrieve the list modelHtmlRenderableListCellRenderer
to retrieve rendering for each item
- Parameters:
bindings
- theBindingGroup
to add the new binding todatum
- the datumjList
- theJList
-
bind
public static <T> void bind(@Nonnull org.jdesktop.beansbinding.BindingGroup bindings, @Nonnull java.lang.Object datum, @Nonnull javax.swing.JTable jTable)
Binds a source to aJTable
. Two roles are used:ObservableListProvider
to retrieve the list modelTableHeaderDescriptor
to retrieve the column definition
- Parameters:
bindings
- theBindingGroup
to add the new binding todatum
- the datumjTable
- theJTable
-
-