CellTable with only div's?

57 views
Skip to first unread message

Ed

unread,
Nov 30, 2010, 6:23:54 PM11/30/10
to Google Web Toolkit
I want to make a CellTable but without the HTML table, so basically a
table that consists of only div's.

Any advice on how to do this?
(maybe extending the CellList class ?)

John LaBanca

unread,
Nov 30, 2010, 10:10:44 PM11/30/10
to google-we...@googlegroups.com
You could extend CellTable and override the protected renderRowValues() method to render the Cells using divs.  You can also override CellList, but CellTable already has the API to add Columns, if you want to use them.  Alternatively, you could override AbstractHasData and just use CellList/CellTable as examples.

Thanks,
John LaBanca
jlab...@google.com



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


Ed

unread,
Dec 1, 2010, 5:51:16 AM12/1/10
to Google Web Toolkit
Thanks, I also think this is the best option, it's just a bit more
work then I thought ;(
I a way am I bit suprised that the GWT dev team doesn't have the div-
less CellTable



On Dec 1, 4:10 am, John LaBanca <jlaba...@google.com> wrote:
> You could extend CellTable and override the protected renderRowValues()
> method to render the Cells using divs.  You can also override CellList, but
> CellTable already has the API to add Columns, if you want to use them.
> Alternatively, you could override AbstractHasData and just use
> CellList/CellTable as examples.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
> On Tue, Nov 30, 2010 at 6:23 PM, Ed <post2edb...@gmail.com> wrote:
> > I want to make a CellTable but without the HTML table, so basically a
> > table that consists of only div's.
>
> > Any advice on how to do this?
> > (maybe extending the CellList class ?)
>
> > --
> > 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<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .

Ramon Salla

unread,
Apr 9, 2011, 5:14:55 PM4/9/11
to google-we...@googlegroups.com
Hi Ed,
Did you manage to extend celltable to work only with divs? can you share the result? I tried it with no luck. 
Thankyou!

Ed Bras

unread,
Apr 11, 2011, 4:28:35 AM4/11/11
to google-we...@googlegroups.com
Ok, that's a long time ago.
I remember that I solved that by creating the HTML string and then passing it in to a HTMLPanel instance.
In the HTMLPanel you can just add the widgets through assigned id's. That worked pretty good and easy.

I didn't extend the celltable functionality as it became too slippery.

- Ed

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

Ramon Salla

unread,
Apr 11, 2011, 2:00:26 PM4/11/11
to google-we...@googlegroups.com
Well, I have just realized that CellList is implemented only with divs. 
So I can create Cells with tables inside (VerticalPanel and so.).
Anyway, thankyou!



Ed Bras

unread,
Apr 11, 2011, 2:26:09 PM4/11/11
to google-we...@googlegroups.com
Yes, but if you use Vertical/HorizontalPanel you have html <table> tags and the idea was to not use that, that is; only use <div> tags to create a tag.


Ramon Salla

unread,
Apr 12, 2011, 10:56:56 AM4/12/11
to google-we...@googlegroups.com
That is true. We are avoiding Vertical/HorizontalPanel. 

In fact, our idea behind using CellList is for the ability of use float:left (overriding CellList.Style) in even and odd cell styles. 
We couldn't to this with elements in CellTable because they are TDs (float:left and td are not very good friends)
By the way, CellList with cells in float:left is an excellent way to create an Image Gallery for hundreds of images.

 




Reply all
Reply to author
Forward
0 new messages