On Fri, Jul 30, 2010 at 09:14, Mengu <[email protected]> wrote:
>
> I have a listener on table's "visibilityChanged" event. In this event, I
> see
> "widthChanged" event is also fired when this event is called. How can I
> prevent this from happening?
>
Table doesn't have a visibilityChanged event. I assume you mean the column
model's visibilityChanged event, as the column model also has a widthChanged
event. It would be fairly difficult to change the event operation. I haven't
traced through all of the code, but I believe what's happening is that when
you change the visibility of a column, the column's width is changing
between 0 and the visible width, and those events are fired from entirely
separate sections of code. Your best bet is to create a flag in your
visibilityChanged handler, and in the widthChanged handler, check whether
the flag is set. If it is set, clear it and return immediately; otherwise
clear it and proceed with the widthChanged functionality.
>
> Another question is, how can I override setColumnWidth of a class that is
> derived from qx.ui.table.Table class? I have tried the following in the
> members block of my class:
>
> setColumnWidth : function(col, width) {
> this.base(arguments);
> alert("setting column width");
> }
>
> yet, it didn't work.
>
You're doing it correctly except that you're not passing the parameters to
the superclass. Change the first line of the method to:
this.base(arguments, col, width);
Derrell
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel