Class Bindings
- java.lang.Object
-
- it.tidalwave.thesefoolishthings.examples.dci.swing.swing.Bindings
-
public final class Bindings extends java.lang.ObjectA 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 voidbind(org.jdesktop.beansbinding.BindingGroup bindings, java.lang.Object datum, javax.swing.JList jList)Binds a source to aJList.static <T> voidbind(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:ObservableListProviderto retrieve the list modelHtmlRenderableListCellRendererto retrieve rendering for each item
- Parameters:
bindings- theBindingGroupto 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:ObservableListProviderto retrieve the list modelTableHeaderDescriptorto retrieve the column definition
- Parameters:
bindings- theBindingGroupto add the new binding todatum- the datumjTable- theJTable
-
-