Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-27 Thread Eric
On Oct 26, 6:32 pm, Ian Bambury ianbamb...@gmail.com wrote: Would you like to expand on your reasoning behind that comment? Ian http://examples.roughian.com 2009/10/26 Eric erjab...@gmail.com If you program creates handlers and attaches them to the panel, simply deleting the panel and

Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-27 Thread Ian Bambury
Provided you stick to standard GWT and extend existing GWT widgets (or Composite), and use the built-in addXxxHandler methods, then you won't get any memory leaks. Or if you are, then report it as a bug, since GWT aims to ensure that there are no memory leaks if GWT is used normally. Ian

Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-26 Thread Eric
On Oct 23, 7:43 pm, Ian Bambury ianbamb...@gmail.com wrote: vp = new VerticalPanel(); Ian 2009/10/24 tedpottel tedpot...@gmail.com Is there a easy way to remove all the widget added to a VertocalPanel? So my draw function could simply remove all the old ones, then add the new oners?

Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-26 Thread Lane LiaBraaten
You can call the clear() method on any Panel to remove all the child widgets: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Panel.html#clear%28%29 -Lane On Oct 26, 8:46 am, Eric erjab...@gmail.com wrote: On Oct 23, 7:43 pm, Ian Bambury

Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-26 Thread Ian Bambury
Would you like to expand on your reasoning behind that comment? Ian http://examples.roughian.com 2009/10/26 Eric erjab...@gmail.com On Oct 23, 7:43 pm, Ian Bambury ianbamb...@gmail.com wrote: vp = new VerticalPanel(); Ian 2009/10/24 tedpottel tedpot...@gmail.com Is there a easy

Re: Is there a easy way to remove all the widgets in a cpanel?

2009-10-23 Thread Ian Bambury
vp = new VerticalPanel(); Ian http://examples.roughian.com 2009/10/24 tedpottel tedpot...@gmail.com Hi, Part of my ui uses a VerticalPanel. The program adds widget to the panel in a function call draw, that loads in information from a database, creats label widget and adds them to the