|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.binder.Binders
public final class Binders
Creates binders for Objects, Beans, PresentationModels, and ActionObject, ActionBeans, and ActionPresentationModels. Since the latter three classes do not ship with the JGoodies Binding, these are described by interfaces.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ObjectBinder binder()
public static ActionObjectBinder binderFor(com.jgoodies.common.internal.IActionObject object)
binder()
.
object
- provides Actions for Action names
public 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 properties
public static ActionBeanBinder binderFor(com.jgoodies.common.internal.IActionBean bean)
binderFor(Object)
.
bean
- the bean used to bind bean properties and to look up Actions
public 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 properties
public 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 names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |