call
fs.addButton
with parameters button caption, button id
and action.
instance newFormSheet of FormSheet with caption and instance of
NewFormSheetContentCreator.
Comments
If the FormSheet does not need to be serializable, you can work
without the FormSheetContentCreator and call the appropriate methods
directly on the FormSheet. However, when the FormSheet gets
serialized, during deserialization only the changes made through
content creators will be restored.
If subclassing a default FormSheet, you can use the same approach,
as FormSheetContentCreators build an inheritance hierarchy for each
single FormSheet instance. I.e., when creating or deserializing a
FormSheet,
all
FormSheetContentCreators associated
to a single FormSheet will be invoked, in the order they were added
to the FormSheet.