public class ClonedWidget extends Widget {

    public ClonedWidget(Element element) {
        setElement(element);
    }
}

....

ClonedWidget myNewWidget = new ClonedWidget(Dom.clone(elementToClone,
true));

Is that the kind of thing you're looking for?

Cheers,
Dave

On Jan 8, 12:07 am, Michael Dausmann <mdausm...@gmail.com> wrote:
> I wish to programatically clone a widget.  Dom.clone(... allows me to
> retrieve an Element.  Is it possible to create a new widget around
> this Element?  Is there another way of cloning the Widget?
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to