On Mon, Jun 8, 2009 at 06:53, Axel Schlueter <[email protected]> wrote:

>
> I'm stuck at a seemingly simple problem: I'm trying to wrap an achor
> widget with a <span>-tag. I'm pretty sure the solution must be dead-
> simple, but I'm unable to find a span widget?! So what's the corrent
> way to wrap a widget with a span or div tag?


For a div tag, you can just use SimplePanel.

For a span tag, subclass SimplePane and use the SimplePanel(Element)
constructor:

  SpanSimplePanel() {
    super(DOM.createSpan());
  }

but either way is rather heavyweight just to get a span tag around an
anchor.

--~--~---------~--~----~------------~-------~--~----~
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