Tuesday, July 2, 2013

Re: Remove all rows from FlexTable

You could use myFlexTable.removeAllRows()

On Thursday, 2 October 2008 00:55:15 UTC-7, hezjing wrote:
Hi

I'm populating a FlexTable using setText(row, column, text).

Here is what I did to clear the entire contents of a FlexTable,

            int count = myFlexTable.getRowCount();
            for (int i = 0; i < count; i++) {
                myFlexTable.removeRow(i);
            }

Is there a more elegant way to clear a FlexTable?

Thank you!


--

Hez

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment