Widget in com.google.gwt.cell.client

26 views
Skip to first unread message

Jim

unread,
Jun 10, 2011, 11:57:56 AM6/10/11
to Google Web Toolkit
Can the widgets in com.google.gwt.cell.client be directly used in
uibinder?


Jim

Thomas Broyer

unread,
Jun 10, 2011, 1:58:22 PM6/10/11
to google-we...@googlegroups.com
Just like any widget, yes. They don't have any "integration" though (no @UiConstructor) though, and no specific parsers either, so you'd have to initialize most things from Java, including for some of them the instantiation (either through a @UiFactory method, or via @UiField(provided=true))

Jim

unread,
Jun 10, 2011, 4:39:08 PM6/10/11
to Google Web Toolkit
It doesn't work. I think cell widgets in com.google.gwt.cell.client
are designed to work with their parent container such as CellTable.
The render method in the cell widgets are called by their parent
container during rendering process.

I want to implement the following features on one page:

First Name : TextInputCell
Last Name: TextInputCell
Date Of Birth: DatePickerCell
....

I would appreciate your solution.

Thomas Broyer

unread,
Jun 10, 2011, 9:43:24 PM6/10/11
to google-we...@googlegroups.com
Oh, sorry, misread your question! There are no Widgets in c.g.g.cell.client, only (mostly) Cells. You can use Cells as widget using the CellWidget from c.g.g.user.cellview.client: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/CellWidget.html
You'll have to instantiate themin your Java code though until specific subclasses are added (such as TextButton in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/widget/client/ , not on GWT 2.3)
Reply all
Reply to author
Forward
0 new messages