public final class Binders extends Object
Modifier and Type | Method and Description |
---|---|
static ObjectBinder |
binder()
Creates and returns a general binder for objects that can bind Actions,
ListModel + ListSelectionModel, ValueModels, and SelectionInLists.
|
static ActionBeanBinder |
binderFor(com.jgoodies.common.internal.IActionBean bean)
Creates and returns a binder that adds the capability to bind
Actions that are looked up by an Action name to the binder
returned by
binderFor(Object) . |
static ActionObjectBinder |
binderFor(com.jgoodies.common.internal.IActionObject object)
Creates and returns a binder that adds the capability to bind
Actions that are looked up by an Action name to the general binder
returned by
binder() . |
static ActionPresentationModelBinder |
binderFor(IActionPresentationModel<?> model)
Creates and returns a binder that adds the capability to bind
Actions that are looked up by an Action name to the binder
returned by
binderFor(IPresentationModel) . |
static PresentationModelBinder |
binderFor(IPresentationModel<?> model)
Creates and returns a binder for presentation models that can bind
bean properties, (synthetic) properties of the presentation model,
as well as the object bindings: Actions, ListModel + ListSelectionModel,
ValueModels, and SelectionInLists.
|
static BeanBinder |
binderFor(Object bean)
Creates and returns a binder for beans that can bind bean
properties as well as the object bindings: Actions,
ListModel + ListSelectionModel, ValueModels, and SelectionInLists.
|
public static ObjectBinder binder()
public static ActionObjectBinder binderFor(com.jgoodies.common.internal.IActionObject object)
binder()
.object
- provides Actions for Action namespublic static BeanBinder binderFor(Object bean)
The parameter type is Object, not ObservableBean or ObservableBean2,
because any Object may be a bean. If bean
is not a bean,
runtime exceptions will be thrown during the execution.
bean
- the bean used to bind bean propertiespublic static ActionBeanBinder binderFor(com.jgoodies.common.internal.IActionBean bean)
binderFor(Object)
.bean
- the bean used to bind bean properties and to look up Actionspublic static PresentationModelBinder binderFor(IPresentationModel<?> model)
model
- the presentation model that holds a bean (used to bind
bean properties) and that may provide its own synthetic propertiespublic static ActionPresentationModelBinder binderFor(IActionPresentationModel<?> model)
binderFor(IPresentationModel)
.model
- the presentation model that holds a bean (used to bind
bean properties), and that may provide its own synthetic properties,
and that provides Actions for Action namesCopyright © 2002-2014 JGoodies Software GmbH. All Rights Reserved.