|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectBinder
Describes a binder that can build action bindings from Actions, data bindings from ValueModels, and list bindings from ListModel/ListSelectionModel or a SelectionInList.
| Method Summary | |
|---|---|
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. |
ListBindingBuilder |
bind(ListModel listModel,
ListSelectionModel listSelectionModel)
Creates and returns a binding builder that manages a ListModel plus ListSelectionModel 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. |
| Method Detail |
|---|
ActionBindingBuilder bind(Action action)
Example: binder.bind(editAction).to(editButton);
action - the Action to be bound
NullPointerException - if action if null
ListBindingBuilder bind(ListModel listModel,
ListSelectionModel listSelectionModel)
Example: binder.bind(albumListModel, albumListSelectionModel).to(albumTable);
listModel - the data modellistSelectionModel - the selection model
NullPointerException - if listModel
or listSelectionModel is nullSelectionInListBindingBuilder bind(SelectionInList<?> selectionInList)
Example: binder.bind(albumSelectionInList).to(albumTable);
selectionInList - provides both the data and selection
NullPointerException - if selectionInList is nullValueModelBindingBuilder bind(ValueModel valueModel)
Example: binder.bind(aValueModel).to(aTextField);
valueModel - the ValueModel to manage
NullPointerException - if valueModel is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||