Re: RootPanel from a Node?
You could actually use node.getAttribute("id"); to extract the node.
But I really couldn't understand your use case.
On Jun 2, 12:31 am, markww <mar...@gmail.com> wrote:
> Hi,
>
> Is there a way to get the id of a Node, or to just make a RootPanel
> from a Node? I am doing this:
>
> RootPanel panel = RootPanel.get("foo");
> Element element = panel.getElement();
> for (int i = 0; i < element.getChildCount(); i++) {
> Node node = element.getChildAt(i);
> String id = node.getId(); // does not exist.
>
> // I want to do:
> RootPanel curr = RootPanel.get(id);
> }
>
> Right now, I need to know all ids in advance, that's the only way a
> RootPanel can get() an element from the dom. I can't give it a Node. I
> might be missing this completely.
>
> Thanks
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home