Java com.jgoodies.binding.adapter Bindings fields, constructors, methods, implement or subclass

Example usage for Java com.jgoodies.binding.adapter Bindings fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.jgoodies.binding.adapter Bindings.

The text is from its open source code.

Method

voidaddComponentPropertyHandler(JComponent component, ValueModel valueModel)
If the given model is a ComponentValueModel, a component property handler is registered with this model.
voidbind(AbstractButton toggleButton, ValueModel valueModel)
Binds a JToggleButton to the given ValueModel in check box style.
voidbind(JColorChooser colorChooser, ValueModel valueModel)
Binds a JColorChooser to the given Color-typed ValueModel.
voidbind(JComboBox comboBox, ComboBoxModel model)
Binds a non-editable JComboBox to the given ComboBoxModel.
voidbind(JComboBox comboBox, SelectionInList selectionInList)
Binds a non-editable JComboBox to the given SelectionInList using the SelectionInList's ListModel as list data provider and the SelectionInList's selection index holder for the combo box model's selected item.

There are a couple of other possibilities to bind a JComboBox.

voidbind(JFormattedTextField textField, ValueModel valueModel)
Binds the given JFormattedTextField to the specified ValueModel.
voidbind(JLabel label, ValueModel valueModel)
Binds the given JLabel to the specified ValueModel.
voidbind(JList list, SelectionInList selectionInList)
Binds a JList to the given SelectionInList using the SelectionInList's ListModel as list data provider and the SelectionInList's selection index holder for the selection model.

Since version 2.0 the list's enabled and visible state is synchronized with the selectionInList's selection holder, if it's a ComponentValueModel .

voidbind(JTable table, SelectionInList selectionInList)
Sets the given SelectionInList as the table's row-data provider, and binds the SelectionInList's selection index to the table's selection.
voidbind(JTextArea textArea, ValueModel valueModel)
Binds a text area to the given ValueModel.
voidbind(JTextField textField, ValueModel valueModel)
Bind a text fields or password field to the given ValueModel.
voidbind(AbstractButton toggleButton, ValueModel model, Object choice)
Binds a JToggleButton to the given ValueModel in radio button style.
voidbind(JColorChooser colorChooser, ValueModel valueModel, Color defaultColor)
Binds a JColorChooser to the given Color-typed ValueModel.
voidbind(JComboBox comboBox, ComboBoxModel model, String nullText)
Binds a JComboBox to the given ComboBoxModel using the specified text to represent null .

TODO: Add a style checks that nullText shall be enclosed in parentheses.

voidbind(JComboBox comboBox, SelectionInList selectionInList, String nullText)
Binds a non-editable JComboBox to the given SelectionInList using the SelectionInList's ListModel as list data provider and the SelectionInList's selection index holder for the combo box model's selected item.

There are a couple of other possibilities to bind a JComboBox.

voidbind(JTable table, ListModel listModel, ListSelectionModel listSelectionModel)
Sets the given ListModel as the table's underlying row-data provider, and sets the given ListSelectionModel in the table.
voidbind(JTextArea textArea, ValueModel valueModel, boolean commitOnFocusLost)
Binds a text area to the given ValueModel.
voidbind(JTextField textField, ValueModel valueModel, boolean commitOnFocusLost)
Binds a text field or password field to the given ValueModel.
voidbind(JComponent component, String propertyName, ValueModel valueModel)
Binds the specified property of the given JComponent to the specified ValueModel.
voidbind(AbstractButton toggleButton, ValueModel valueModel, Object selectedValue, Object deselectedValue)
Binds a JToggleButton to the given ValueModel in check box style.