Thamizh Arasu schrieb:
> Hi,
> 
> I have FlexTable object. In that I have added some widgets. Whenever I
> made changes to the ListBox control, I need to get the current row and
> do some work.

Pass the row-number to the ChangeEventListener during creation:

Example, showing the idea. The IDE is down, so I can't provide
a working example.

for (int i = 0; i < rows; i++){
   final int rowNr = i;
   ListBox lb = getListBox();
   lb.addChangeEventListener(new EventListener(){
     onChange(){
       GWT.log("Row " + rowNr + " has been changed");
     }
   }
   flexTable.setWidget(i, 0, lb);
}


Regards, Lothar

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

Reply via email to