CellTable uses a ClientBundle (see CellTable.Resources/Style) instead of
style names.  ClientBundles allow GWT to perform optimizations on your CSS,
including inlining, obfuscation, and dead code elimination.  You can extend
or replace the default styles by extending CellTable.Style and passing a
CellTable.Resources into the CellTable constructor.

More info is in the ClientBundle dev guide:
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

Thanks,
John LaBanca
[email protected]


On Thu, Oct 28, 2010 at 8:38 AM, vsdev <[email protected]> wrote:

> I'm trying to style a GWT2.1 cell table. Unfortunately I couldn't find
> any documentation on the default styles. So far all GWT widgets I
> worked with had default styles like
>
> .gwt-DecoratedStackPanel {
> }
> .gwt-DecoratedStackPanel .gwt-StackPanelItem {
> }
> .gwt-DecoratedStackPanel .gwt-StackPanelItem-selected {
> }
> etc.
>
> I couldn't find any of that on the cell table, instead there were
> styles like class="GL0PBETBKC GL0PBETBIC" etc. (generated by GWT I
> suppose?) on the elements, So what I did was defining a style for the
> table with myTable.setStyleName("gwt-CellTable"); and then simply
> referring to the different table elements with normal css selectors
> like
>
> .gwt-CellTable{
> }
> .gwt-CellTable thead tr th{
> }
> .gwt-CellTable tbody tr td{
> }
>
> Sure that works, but isn't the way I want it. First I'd have to call
> setStyleName on each table I create and additionally it is kind of
> hard to give elements a different style, lets say, first and last
> column with different background, first td in first row upperleft
> corner rounded, put different colors for hovering etc.
>
> Does anyone know how to achieve that - have "plausible" classes on the
> elements of the table? Or better yet an example to study? Thanks so
> much!
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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.

Reply via email to