Form Models now preload all data for their clients reducing the number of round trips required to populate the view.
Code example
In the example below, the UlcFormModel is expected to be accessing an (application) object that has an attribute accessible via #street and #street: from UlcField:
|formModel box| (formModel := UlcFormModel new) model: someObject. box := UlcBox new) add: (UlcField new columns: 10; formModelAttribute: 'street'; formModel: formModel; yourself). UlcShell new add: box
The following parts (all of which are subclasses of UlcFormComponent) can be associated with Form Model:
Form Model as enabler
UlcFormModel can act as the enabler for buttons and menu items, as follows:
cancelButton setEnabler: formModel
UlcFormModel sets the widget to its enable state when the user makes the first change to one of the fields of a form.
For an example of using this part in the Composition Editor, see Working with Form Model parts.