You may try the following:
1. find the container such as Panel for all text fields.
2. find the counts of child widgets that are embedded in the
container.
3. StringBuilder sb = new StringBuilder();
for (int i=0; i<size; i++) {
Widget widget = container.getWidget(i);
if (widget instanceof TextBox) {
TextBox tb = (TextBox)widget;
sb.append(tb.getText());
}
}
Jim
http://www.gwtorm.com - GWT ORM
http://code.google.com/p/dreamsource-orm/
On Jun 16, 1:50 am, zujee <[email protected]> wrote:
> Hi all,
> I want to getText of all fields in a page and want to setText with
> another. Please help me how can I do that, rather than manually
> getting the text. Exampl code might help me more.
>
> thanks in advance
> zuje
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---