On 16 nov, 11:58, "Jerome C." <[email protected]> wrote: > nobody has an idea on how to manage enum with the new editor framework > without rewriting a class for each enum ? > > I just want to create a RadioButtonGroup which is used to edit > enumeration but I don't know how to cast my enum...
How about passing your Enum's class to your widget's constructor so you can use Enum.valueOf(enumCls, radio.getFormValue())? RadioButtonGroup<MyEnumeration> myEnumFieldEditor = new RadioButtonGroup<MyEnumeration>(MyEnumeration.class); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
