Hi,

I have subclassed MenuItem:

class MyMenuItem extends MenuItem


And I would like to use it in an UIBinder specification:

 <g:MenuBar ui:field="menuBar">
  <g:MyMenuItem   ui:field="myItem" text="Label" customField="test">
  ...


Where do I specify, which attributes are allowed in the UIBinder 
specification and how they are passed to the MyMenuItem class?

I cannot believe that it is sufficient to have a constructor with the same 
fields like this:

MyMenuItem (String text,String customField)


(In a constructor, the order of the parameters matters, in an XML element 
it does not.)

Can I only pass strings, or can I also pass other things, e. g. enums?

Thanks
Magnus



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to