I'm not sure as to any exact procedure fro this, but this might give you some idea of whats happening under the hood...
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/elementparsers/ On Fri, Jun 18, 2010 at 6:29 AM, Will <[email protected]> wrote: > I want to create the same UiBinder support for custom elements as > well. Can anyone point us towards an example in the GWT source so > that we can see how <g:center> is implemented and get an idea on how > we can create similar elements? If I don't hear back I plan to create > a different widget for each custom element and have an onAttach( ) > method that will throw an exception if the widget is placed outside of > the correct context. I think that will behave similar to <g:center> > but I imagine GWT uses something more robust. > > On Apr 19, 1:58 pm, Graham J <[email protected]> wrote: >> DockLayoutPanel has the <g:north>, <g:south>, etc. which are referred >> to as 'elements' on theUiBinderhelp page. (http://code.google.com/ >> webtoolkit/doc/latest/DevGuideUiBinder.html#Panels) >> >> Any idea how one would go about adding this functionality to my own >> widgets? Theirs appear to be parametrized and everything. >> >> -- >> 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 >> athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > 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. > > -- 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.
