Hi Graham,

You should look at this thread which contains interesting information
on how to create custom element parsers:
https://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/4d79f729030527c5/181973c17d16cbc0?lnk=gst&q=custom+element+parser#181973c17d16cbc0

My understanding of the key points is:
a/ You officially cannot create your own element parser (there is no
publicly supported API for that)
b/ However, because GWT is open source, you can easily patch one or
two classes, put them at the head of your classpath and create your
own element parsers (though with no guarantee that they will not be
broken by future GWT evolutions).
c/ rjrjr mentions a possible public API for this in a later release,
possibly 2.1. However, if you listen to this webcast (http://
code.google.com/events/io/2010/sessions/gwt-ui-overhaul.html) from IO
2010, the possibility for a public API seems more remote (somebody
asks the question at the end of the session)

I have used this myself extensively to map SVG tags in UiBinder. If
you are interested, you can look here (http://www.vectomatic.org/lib-
gwt-svg/uibinder-integration-with-lib-gwt-svg) for an article about
this work and here (http://www.vectomatic.org/mvn-sites/lib-gwt-svg/
xref/org/vectomatic/dev/svg/impl/gen/SVGButtonBaseParser.html) for
source code.

Lukas

On Jun 18, 2:45 pm, Chris Boertien <[email protected]> wrote:
> 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/...
>
> 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 
> > 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.

Reply via email to