B
- the type of the beanpublic class BeanBinderImpl<B> extends ObjectBinderImpl implements BeanBinder
Constructor and Description |
---|
BeanBinderImpl(B target)
Constructs a BeanBinder for the given bean.
|
Modifier and Type | Method and Description |
---|---|
ValueModelBindingBuilder |
bindProperty(String propertyName)
Looks up a ValueModel for the given (bean) property name.
|
protected BeanAdapter<B> |
getBeanAdapter()
Lazily creates and returns a
BeanAdapter on this binder's
bean that observes the bean properties. |
protected B |
getTarget() |
bind, bind, bind, bind, bind, bind
public BeanBinderImpl(B target)
target
- used to bind bean properties via bindProperty(String)
public ValueModelBindingBuilder bindProperty(String propertyName)
BeanBinder
Examples:
binder.bindProperty("artist") .to(artistField);
binder.bindProperty(PROPERTY_ARTIST).to(artistField);
bindProperty
in interface BeanBinder
propertyName
- the name of the bean property to be converted
to a ValueModelprotected B getTarget()
protected BeanAdapter<B> getBeanAdapter()
BeanAdapter
on this binder's
bean that observes the bean properties.Copyright © 2002-2015 JGoodies Software GmbH. All Rights Reserved.