row.
I try the following:
Flextable flextable = new Flextable();
flextable.setWidth("100%");
flextable.getColumnformatter().setWidth(0, "5%");
flextable.getColumnformatter().setWidth(1, "45%");
flextable.getColumnformatter().setWidth(2,"50%");
flextable.setWidget(0,0, anyWidget1);
flextable.setWidget(0, 1, anyWidget2);
flextable.setWidget(0, 2, anyWidget3);
// I want row 2 column width is special
flextable.getFlexCellFormatter().setWidth(1,0,"15%");
flextable.geetFlexCellFormatter().setWidth(1, 1, "5%");
flextable.getFlexCellFormatter().setWidth(2,2,"80%");
flextable.setWidget(1, 0, anyWidget4);
flextable.setWidget(2, 0, anyWidget5);
flextable.setWidget(3, 0, anyWidget6);
but the result is very strange,
the output seems something like combination of row1 column widht and
row 2 column width.
e.g. column 1 is 15%, column 2 is 45%!!!
how to set a row with special column width using Flextable?
--
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