Wednesday, January 12, 2011

what cleanup is necessary if a widget creates multiple child elements

Hi, I'm wondering what, if anything I need to do from a cleanup
perspective when using a Widget that creates child elements. For
example:

public class MyWidget extends Widget {

public MyWidget() {
Element el = DOM.createDiv();
setElement(el);

Element anotherEl = DOM.createDiv();
el.appendchild(anotherEl);
}
}

With the code above, should I do anything with "anotherEl" on detatch?
Thanks for the advice.

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


Real Estate