first, the argument to getCellFormatter is row, column, style name. second, sometimes you need to remove style name first.
On Jul 21, 12:46 pm, fny82 <[email protected]> wrote: > I've included a StyleSheet in my GWT project (in the .gwt.xml file). > I'm trying to set the first and third columns of this flex table to > right alignment. I first tried to use getColumnFormatter(), but that > didn't work. Specifically, I did this: > > myFlexTable.getColumnFormatter().addStyleName(0, "myRightAlignStyle"); > myFlexTable.getColumnFormatter().addStyleName(2, "myRightAlignStyle"); > > This didn't change anything, though. The two columns still appeared > aligned to the left. So I next tried getCellFormatter(): > > myFlexTable.getCellFormatter().addStyleName(0, 0, > "myRightAlignStyle"); > myFlexTable.getCellFormatter().addStyleName(2, 0, > "myRightAlignStyle"); > > (etc.) > > This works, but it's obviously a longer way to do it. Is there > anything peculiar that I need to know about getColumnFormatter(), or > am I just messing it up? Thanks! -- 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.
