Wednesday, December 1, 2010

HTMLTable.RowFormatter problem

Hello all,
i have the following code:

else if (Event.ONMOUSEOVER == eventType) {
            HTMLTable.RowFormatter rf = this.getRowFormatter();
            if (fila != 0) {
                if ((oldRow % 2) != 0)
                    rf.setStyleName(oldRow, "FlexTable-OddRow");
                else
                    rf.setStyleName(oldRow, "FlexTable-EvenRow");
                rf.setStyleName(fila, "FlexTable-Selected");
                oldRow = fila;
            }
        }

Is a simple code to implements a selection handler on a flextable, but in addition, this code do something weird... add rows to the flextable :S
I have used window.alert and log.debug to find the exact line wich add the row, and any rf.setStyleName when "it wants", add a row.
Is a bug?

Thanks all!!

Ignasi

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

No comments:

Post a Comment