Class 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 a JList.
      static <T> void bind​(org.jdesktop.beansbinding.BindingGroup bindings, java.lang.Object datum, javax.swing.JTable jTable)
      Binds a source to a JTable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Bindings

        public Bindings()
    • 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 a JList. Two roles are used:
        1. ObservableListProvider to retrieve the list model
        2. HtmlRenderableListCellRenderer to retrieve rendering for each item
        Parameters:
        bindings - the BindingGroup to add the new binding to
        datum - the datum
        jList - the JList
      • 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 a JTable. Two roles are used:
        1. ObservableListProvider to retrieve the list model
        2. TableHeaderDescriptor to retrieve the column definition
        Parameters:
        bindings - the BindingGroup to add the new binding to
        datum - the datum
        jTable - the JTable