I want to study the roles of the the following components and find a reasonably sound structure for the UI
Item holds Properties and passes data between data source (a bean, for example) and the UI
- easy way of binding
- through the "build" and "buildAndBind" methods
- easy way of handling all fields at once:
- enable / disable
- set read only
- isValid
- commit
- cache changes
- commit()
- discard()
- Item : used as data source (set/get)
- FieldGroupFieldFactory: field factory (set / get)
Responsible for creating fields based on data to be edited
My UI Structure:
Form:
- custom component
- decides where to place the fields and other UI features
- binds to an item (new or edit)
- optionally is given a field group
- provide buttons
- commit / discard fieldgroup