What Is Pectin
“data up” – frameworks that map the form data from domain bean definition(i.e struts) . The data is collected in regard to the bean definition. There is no business logic based on the User Interface in this model. Moreover, the UI is passive, and the logic is on the server side.
“bottom down” – the “data up” does not work well for GWT, since most of the logic moves to the client, and the server side is just a thin DAO wrapper. Pectin works with the domain bean without being constrained by it.
- View : may implement view or delegate to presenter model
- Bindings : binding widgets to model
- Presentation Model (with plugins) : data and handlers required by view, whereas plugins add additional state to data
- Adapters : creating ValueModel‘s from your domain data (dirty data or not)
- Domain – the data
Value model in Presentation model: provides access and mutation methods (get/set) and notifications when the value is modified using a (gin/juice like) declarative style api. (ValueModel , MutableValueModel)
FieldModels are a ValueModel that hold a reference back to the form that created it.
No comments yet.