By default, the original style is a GWT style.  Sometimes they are
documented in the java doc.

or look in the generated GWT css files.


On Jul 21, 2:00 pm, Frank Zecca <fze...@gmail.com> wrote:
> Thanks for the response. That was a typo in my post, I have the 
> getCellFormatter() syntax properly in my application. It works fine when I do 
> it that way, but the problem is that I have to have a pair of entries for 
> each row in my FlexTable, which is a bit annoying. :)
>
> Regarding the getColumnFormatter(), how do I use removeStyleName() since I 
> haven't applied any other styles to this FlexTable? The arguments for it call 
> for the column number and the style to remove. For the hell of it, I tried 
> using removeStyleName(0, "myRightAlignStyle") but it didn't make a 
> difference. I also tried using setStyleName(0, "myRightAlignStyle") instead 
> of addStyleName, but this too had no effect.
>
> On Jul 21, 2011, at 2:48 PM, skippy wrote:
>
>
>
> > 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 <fze...@gmail.com> 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 google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
> > text -
>
> - Show quoted text -

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to