JGoodies Binding :: Guide :: Domain Adapters
Author: Karsten Lentzsch
Description: The JGoodies Binding provides an elegant means to present object properties in a user interface.
Keywords: JGoodies Data Binding Java Swing UI Design Usability Lentzsch Kiel
Date: 2006-01-01

# :: Guide :: Domain Adapters :: ## PresentationModel The `PresentationModel` uses a BeanAdapter to convert multiple Bean properties into ValueModels. It provides two sets of methods to vend such models: `#getModel` for unbuffered models and `#getBufferedModel` for buffered models. See the JavaDoc class comment for details. PresentationModel is the most frequently used means to adapt Java Bean properties. ## BeanAdapter The `BeanAdapter` converts multiple Java Bean's properties into ValueModels. Optionally the adapter can observe changes in bound properties to forward the bean's PropertyChangeEvents. Basically the BeanAdapter does for multiple properties what the PropertyAdapter does for a single bean property. Typically you should use a PresentationModel, not a BeanAdapter. ## PropertyAdapter The `PropertyAdapter` converts a single Java Bean property into a ValueModel. The bean property must be a single value as described by the Java Bean Specification. Optionally the adapter can observe changes in bound properties as described in section 7.4 of the Bean specification. Typically you should use a PresentationModel, not a PropertyAdapter. Only if you have internal adapters that you don't expose and if you adapt a single property, the PropertyAdapter is useful.
(c) 2010 JGoodies |  |