yes, addColumnStyleName method affects colgroup element, not very usful when you need to style text in a column. so the only thing i could think of was not to use TextCell / TextColumn, but to extend AbstractCell, something like this:
public class StylableTextCell extends AbstractCell<String> { private String className; public StylableTextCell(String className) { super(); this.className = className; } @Override public void render(Context context, String value, SafeHtmlBuilder sb) { if (value == null) return; sb.appendHtmlConstant("<span class=\"" + className + "\">"); sb.append(SafeHtmlUtils.fromTrustedString(value)); sb.appendHtmlConstant("</span>"); } } StylableTextCell stylableTextCell = new StylableTextCell("myStyle"); Column<MyObject, String> column = new Column<MyObject, String>(stylableTextCell) { @Override public String getValue(MyObject object) { return object.getSomething(); } }; -- 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.