Hello everybody!

I've created a control containing a qx.ui.table.Table where the the 
control uses the childControl mechanism to create the table as a child 
by overwriting _createChildControlImpl in the control.

In some situation I want to be able to change the column model of the 
table which is not possible with the already initialized table instance.
So I have to destruct/dispose/remove the table child control and 
recreate the table instance with the new table column model.

The problem is that there is no interface (no methods) which allow the 
re-creation or removal of a child control from its parent.

As every widget inherits from qx.ui.core.Widget I'm able to call the 
inherited method _disposeChildControls which disposes all child controls.

With this and by calling the following methods

     control.remove(table);
     control._disposeChildControls();
     table.destroy();

I'm able to recreate the table while everything is working as expected, 
but it does not "feel" like the right way to do it.

Is there a more "official" way to do this?

Any help would be great.

Regards
Dietrich

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to