Its a bit silly, but there is no (or i couldnt find at least) a 1
liner for show/hide columns in flextables

there is this:
     myflextable.getRowFormatter().setVisible(arg0, arg1);
but there is not this:
    myflextable.getColumnFormatter().setVisible(arg0, arg1);

DUH?!?! what were you thinking?

anyway, for super lazy people, here is a quick work-around:
setColumnVisible(myflextable, column, true);

        private void setColumnVisible(FlexTable table, int Col, boolean b) {
                for(int i=0; i< table.getRowCount(); i++) {
                        table.getCellFormatter().setVisible(i, Col, b);
                }
        }

of course, you could type is as a 1 liner in your code, but i use it a
lot, hence the need for a function.

/David

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to