Else, there's some base trick that you could use :
cellTable.setStylePrimaryName("yourName")
Then you can override every default if you know the name of the childs
damn, don't know if that would work... normally google would have prefixed
everything with something like : gwt-cellTable and then : gwt-cellTable
.cell
That was easy to only override the first and then rewrite the css for the
leafs... but I took a look in the css and they use simple single class name
!
Else you can retrieve each cell from a row with that :
view.getRowElement(0).getCells()
Then set a custom style with the same trick I've done with get
element.setAttribute.
That's not sexy, but I see nothing else and since they-ve done a good work
to make those lightweight, it's probably the only way to add custom style
inside without using span.
Cheers,
On Tue, Jul 27, 2010 at 2:53 PM, Ted <[email protected]> wrote:
> Hi Christian,
>
> When I override the render object of Column I can nest a <span> inside
> the <td> for that cell. This way I can control the style of the
> span. However if there is a way to control the style of the td I
> would be interested in what you can discover.
>
> Thanks,
> Ted
>
> On Jul 27, 1:41 pm, Christian Goudreau <[email protected]>
> wrote:
> > You're right, but if a row can have his style changed, I bet a Cell can
> too.
> >
> > Give me 10 minutes, I'll do a fast check, I'm also right into this stuff
> > right now.
> >
> > Cheers,
> >
> >
> >
> >
> >
> > On Tue, Jul 27, 2010 at 2:37 PM, Ted <[email protected]> wrote:
> > > Hi Christian,
> >
> > > Thanks for the link. The Column object doesn't appear to have a way
> > > to set the style. There are no setStyleName or addStyleNames methods
> > > to call as in UIObject. I am hoping there is an alternative way but I
> > > cannot discover it yet.
> >
> > > Thanks,
> > > Ted
> >
> > > On Jul 27, 9:18 am, Christian Goudreau <[email protected]>
> > > wrote:
> > > >
> http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-pr...
> >
> > > > As for customization, use the same technique as for any other widget.
> >
> > > > Cheers,
> >
> > > > On Tue, Jul 27, 2010 at 10:04 AM, Deepak Singh <
> [email protected]
> > > >wrote:
> >
> > > > > Hello,
> >
> > > > > I have to use this data presentation widget for my project. Can
> anybody
> > > > > help me how to use it or any sample code for that would be very
> > > helpful.
> >
> > > > > Regards
> > > > > Deepak
> >
> > > > > On Tue, Jul 27, 2010 at 2:07 AM, Ted <[email protected]>
> wrote:
> >
> > > > >> Hello,
> >
> > > > >> Does anyone have a suggestion for the preferred way to customize a
> > > > >> style for a given cell using a TextColumn with the new Data
> > > > >> Presentation Widgets framework in GWT 2.1?
> >
> > > > >> Thanks,
> > > > >> Ted
> >
> > > > >> --
> > > > >> 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]><google-web-toolkit%2Bunsubs
> [email protected]><google-web-toolkit%2Bunsubs
> > > [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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]><google-web-toolkit%2Bunsubs
> > > [email protected]>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > > --
> > > > Christian Goudreau
> >
> > > --
> > > 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]><google-web-toolkit%2Bunsubs
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > Christian Goudreau
>
> --
> 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.
>
>
--
Christian Goudreau
--
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.