Setting extra information on provided Cells?
Far too often, I seem to have to create new Cells that do very similar
functionality to built-in Cells. For example, I've had to create a
SelectionCell that can alternately show a listbox as either enabled or
disabled, or create a SelectionCell that has different options in the
listbox depending on the row type. I've had to create an ImageCell
that shows alt text, an EditTextCell that uses a textarea instead of
an text box, and a CheckboxCell that displays a radio button instead
of a checkbox.
In each of these cases, I have to go find the GWT source code for the
cell, copy and paste it into a new class in my project, and start
making the tweaks necessary to do the desired result. Already this has
required tweaks to my code since CheckboxCell has changed since 2.1.0
and so RadioCell has needed corresponding changes. This seems to break
the OO design philosophy, but there aren't easy extension points in
the above cells that make subclassing easy.
Is there a better way to create these Cells without the ugly?
Thanks,
Derek
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home