OK, not bad. I need the functionality of the FocusPanel anyway, so...

    vPanel.getElement().setInnerHTML(innerHtml);
    Element emtDetails = Document.get().getElementById("details");
    EmbededWidget widget = new EmbededWidget(emtDetails);
    TableFocusHandler handler = new TableFocusHandler();
    widget.setTabIndex(3);
    widget.addFocusHandler(handler);

Now I end up with a circular thing. I already added the <table> to the
document by setting it as the inner HTML of the vertical panel, so that is
how I am able to get the element and make it the parameter of the
EmbededWidget. But now I can't add the embededWidget to the vPanel. It
removes the innerHTML I just put in for the table.


On Wed, Mar 10, 2010 at 10:00 PM, Paul Stockley <[email protected]>wrote:

> I think its protected. You are going to have to subclass Widget and
> create a new class that takes an element as a constructor. Take a look
> at FocusWidget for an idea of how it is done.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
~~~~~~~~~~~~~~~~
My work here is done!
~~~~~~~~~~~~~~~~

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