On Aug 10, 2008, at 11:46 PM, Lukas Renggli wrote:
[ ... snippet content ... ]
In your case you probably need to provide your own
implementation of a
renderer.
* The components (subclasses of MADescriptionComponent) provide the
view of the description. Every description has a default component,
but some have addition views. You can choose the different view like
this:
descriptionVegetarian
^ MABooleanDescription new
accessor: #vegetarian;
componentClass: MACheckboxComponent;
"or MASelectListComponent or MARadioGroupComponent" ;
yourself
* The decorations (subclasses of MAComponentDecoration) are solely
used to attach the form around the components, to display the error
messages and to add form buttons.
Hope this helps? I might turn this answer into a blog post someday ;-)
Lukas -- Thanks for the great write-up! That is what I was looking
for and something I think that ought
to be captured in an FAQ at least.. Anyway -- if I want to write my
own renderer, I'm assuming the
renderer will get a copy of the object to be rendered or does it work
differently? If you want to point me
to an example, that would be good too! Thanks again!
-- Rick