public class ObjectBinderImpl extends Object implements ObjectBinder
| Constructor and Description |
|---|
ObjectBinderImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionBindingBuilder |
bind(Action action)
Creates and returns a binding builder that manages an Action that
can be operated on and that can be bound to a button or text field.
|
ComboBoxBindingBuilder |
bind(ComboBoxModel comboBoxModel)
Creates and returns a binding builder for the given combo box model
that can be bound to a combo box.
|
ListBindingBuilder |
bind(ListModel dataModel,
ListSelectionModel selectionModel)
Creates and returns a binding builder for the given ListModel
and ListSelectionModel that can be bound to a list or table.
|
ListBindingBuilder |
bind(Object[] data,
ListSelectionModel selectionModel)
Creates and returns a binding builder for the given fixed data
and selection model that can be bound to a list or table.
|
SelectionInListBindingBuilder |
bind(SelectionInList<?> selectionInList)
Creates and returns a binding builder that manages a SelectionInList
that can be bound to a list, table, or combo box.
|
ValueModelBindingBuilder |
bind(ValueModel valueModel)
Creates and returns a binding builder that manages a ValueModel
that can be operated on and that can be bound to a component.
|
public ActionBindingBuilder bind(Action action)
ObjectBinderExample:
binder.bind(editAction).to(editButton);
bind in interface ObjectBinderaction - the Action to be boundpublic ComboBoxBindingBuilder bind(ComboBoxModel comboBoxModel)
ObjectBinderExample:
binder.bind(choicesComboBoxModel).to(choicesComboBox);
bind in interface ObjectBindercomboBoxModel - provides the data and selectionpublic ListBindingBuilder bind(Object[] data, ListSelectionModel selectionModel)
ObjectBinderExample:
binder.bind(albums, albumSelectionModel).to(albumTable);
bind in interface ObjectBinderdata - provides the dataselectionModel - the selection modelpublic ListBindingBuilder bind(ListModel dataModel, ListSelectionModel selectionModel)
ObjectBinderExample:
binder.bind(albumModel, albumSelectionModel).to(albumTable);
bind in interface ObjectBinderdataModel - provides the dataselectionModel - the selection modelpublic SelectionInListBindingBuilder bind(SelectionInList<?> selectionInList)
ObjectBinderExamples:
binder.bind(albumSelectionInList).to(albumCombo); binder.bind(albumSelectionInList).to(albumTable);
bind in interface ObjectBinderselectionInList - provides both the data and selectionpublic ValueModelBindingBuilder bind(ValueModel valueModel)
ObjectBinderExample: binder.bind(aValueModel).to(aTextField);
bind in interface ObjectBindervalueModel - the ValueModel to manageCopyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.