While creating the table rows you can do something like:
for (int i=0; i<totalRecords; i++) {
// update data columns
Button button = new Button("Upload");
button.addClickListener(new ClickListener() {
uploadRow(i);
)};
table.setWidget(i,COL_BUTTON, button);
}
Now in the uploadRow method you have the index of the table row whose data
needs to be uploaded.
OR
You can set the id of the button as the row index of the table.
OR
You can loop thru the table rows and check for equality of the clicked
button and the current rows button.
- Litty Preeth
On Fri, Jan 23, 2009 at 10:05 PM, jake H <[email protected]> wrote:
>
> Moreover the way i m using the buttons is
>
> Button []but = new Button[x];
>
>
> and in every table i add the following but[y] ( 0<= y < x )
>
>
> the question remains though.
>
>
> ty.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---