com.jgoodies.binding.binder
Class PresentationModelBinderImpl<PM extends IPresentationModel>
java.lang.Object
com.jgoodies.binding.binder.ObjectBinderImpl
com.jgoodies.binding.binder.BeanBinderImpl<PM>
com.jgoodies.binding.binder.PresentationModelBinderImpl<PM>
- Type Parameters:
PM
- the type of the PresentationModel
- All Implemented Interfaces:
- BeanBinder, ObjectBinder, PresentationModelBinder
- Direct Known Subclasses:
- ActionPresentationModelBinderImpl
public class PresentationModelBinderImpl<PM extends IPresentationModel>
- extends BeanBinderImpl<PM>
- implements PresentationModelBinder
Adds binding capabilities for bean property names to its superclass
that can bind ValueModels, SelectionInLists, Actions, and
ListModel + ListSelectionModel.
- Since:
- 2.3
- Version:
- $Revision: 1.1 $
- Author:
- Karsten Lentzsch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PresentationModelBinderImpl
public PresentationModelBinderImpl(PM model)
- Constructs a PresentationModelBinder for the given PresentationModel.
- Parameters:
model
- used to look up model properties
via BeanBinderImpl.bindProperty(String)
and bean properties
via bindBeanProperty(String)
bindBeanProperty
public ValueModelBindingBuilder bindBeanProperty(String propertyName)
- Description copied from interface:
PresentationModelBinder
- Creates and returns a binding builder that manages a ValueModel
that can be operated on and that can be bound to a component.
Example:
binder.bindBeanProperty("artist").to(artistField);
- Specified by:
bindBeanProperty
in interface PresentationModelBinder
- Parameters:
propertyName
- the name of the property
of the presentation model's bean
- Returns:
- the binding builder that holds the converted bean property
Copyright © 2002-2013 JGoodies Software GmbH. All Rights Reserved.