GWT 2.1 Cell Widgets style

335 views
Skip to first unread message

pjspychala

unread,
Oct 21, 2010, 1:06:48 PM10/21/10
to Google Web Toolkit
I've been trying to clean up my styling of the new Data Presentation
Widgets in GWT 2.1. Right now, I am having a hard time changing the
style of the header of a CellTable without going through DOM.

I have tried passing a extended Resources class to the CellTable
constructor with odd results (the default celltable and new resource
get compiled into css)
I have tried overriding the CellTable css but the styles are
obfuscated
I have tried extending the CellTable class but that seems a bit odd
just to change the style of the celltable.

What is the best way to change the cellTableHeader (or anyother) class
style?

pjspychala

unread,
Oct 21, 2010, 2:22:31 PM10/21/10
to Google Web Toolkit
interface TableResources extends CellTable.Resources
{
@Source({"myCellTable.css"})
TableStyle cellTableStyle();
}

interface TableStyle extends CellTable.Style {}

@UiField(provided=true)
CellTable<Junk> junkCellTable;

CellTable.Resources reso = GWT.create(TableResources.class);
junkCellTable= new CellTable<Junk>(15, reso);

I forgot the (provided=true) part, this works now.

Deepak Singh

unread,
Oct 22, 2010, 2:57:06 PM10/22/10
to google-we...@googlegroups.com
Can you pls provide myCellTable.css or some sample css. 

--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Thomas Broyer

unread,
Oct 22, 2010, 5:54:14 PM10/22/10
to Google Web Toolkit


On 22 oct, 20:57, Deepak Singh <deepaksingh...@gmail.com> wrote:
> Can you pls provide myCellTable.css or some sample css.

See http://groups.google.fr/group/google-web-toolkit/msg/e31641467b402dd9

pjspychala

unread,
Oct 28, 2010, 1:28:35 PM10/28/10
to Google Web Toolkit
Reply all
Reply to author
Forward
0 new messages