public interface ObjectBinder
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.
|
ActionBindingBuilder bind(Action action)
Example:
binder.bind(editAction).to(editButton);
action
- the Action to be boundNullPointerException
- if action
if null
ComboBoxBindingBuilder bind(ComboBoxModel comboBoxModel)
Example:
binder.bind(choicesComboBoxModel).to(choicesComboBox);
comboBoxModel
- provides the data and selectionNullPointerException
- if comboBoxModel
is null
ListBindingBuilder bind(Object[] data, ListSelectionModel selectionModel)
Example:
binder.bind(albums, albumSelectionModel).to(albumTable);
data
- provides the dataselectionModel
- the selection modelNullPointerException
- if data
or selectionModel
is null
ListBindingBuilder bind(ListModel dataModel, ListSelectionModel selectionModel)
Example:
binder.bind(albumModel, albumSelectionModel).to(albumTable);
dataModel
- provides the dataselectionModel
- the selection modelNullPointerException
- if dataModel
or selectionModel
is null
SelectionInListBindingBuilder bind(SelectionInList<?> selectionInList)
Examples:
binder.bind(albumSelectionInList).to(albumCombo); binder.bind(albumSelectionInList).to(albumTable);
selectionInList
- provides both the data and selectionNullPointerException
- if selectionInList
is null
ValueModelBindingBuilder bind(ValueModel valueModel)
Example: binder.bind(aValueModel).to(aTextField);
valueModel
- the ValueModel to manageNullPointerException
- if valueModel
is null
Copyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.