GWT CellTable Add Widgets on The Footer

390 views
Skip to first unread message

POODevelopper

unread,
Sep 18, 2011, 4:32:49 PM9/18/11
to google-we...@googlegroups.com
Hello I'm using GWT 2.4 and I want to Add Some Widgets on the footer on a CellTable, Is It possible. Below A Mockup if What I want to accomplish : 

It Is Possible out the box ??

Sudhakar Abraham

unread,
Sep 19, 2011, 8:50:43 AM9/19/11
to Google Web Toolkit
Yes it is possible, you can add widget to the footer, override the
render() method in Header class. Try the below code.

Header<Student> footer = new Header<Student>(new
ClickableTextCell())
{

@Override
public void render(Cell.Context context, SafeHtmlBuilder sb)
{
sb.appendEscaped(((Student)getValue()).getMark()) ;
}
}
//add footer to the cell table
celltable.addColumn(student , someHeader, footer);

S. Abraham
www.DataStoreGwt.com

Mrabti Idriss

unread,
Sep 19, 2011, 9:32:11 AM9/19/11
to google-we...@googlegroups.com

Thanks, that what I was looking for. Ill try it today and post back the solution of anyone needed it layer.

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

POODevelopper

unread,
Sep 19, 2011, 5:51:36 PM9/19/11
to google-we...@googlegroups.com
How can use editors with this solution ?? 
Reply all
Reply to author
Forward
0 new messages