Maksim, You can do as you suggest and store a reference to the object on the row or if you prefer to not extend the row objects, you could simply keep an array or list of the objects. You could get the proper object from the array or list with the index you are getting from the event now.
HTH, Chad On Jul 5, 10:43 pm, Maksim Ustinov <[email protected]> wrote: > Right now I'm playing with ScrollTable from GWT Incubator. I'm trying > to make functionality when user select one row then click on Edit > button and then he will be able to edit that particular Object. Right > now I have to check what row has been selected > > Integer secRowPosition = e.getSelectedRows().iterator().next > ().getRowIndex(); > > then query my dataTable for row and column to select unique id and > then query my database for that object: > > myObject = getObjectFromDBbyID(dataTable.getText(secRowPosition, 0)); > > This method works fine for me, but is it possible to get that object > straight from the table and not form database so I can save some time > without querying my database. > > I assume i need to assign each object to the row in ScrollTable in > order to do that. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
