Re: Syncronize hovered rows in two cellTables
Back from holiday :-) Thanks for your reply. I tried to implement things like you described. Setting the hovering row doesn't work, because I can't access the property. Now I tried to dispatch an event on each table to handle the hovering. Therefore I've to change the event target. Otherwise The table can't detect the correct part (the body - CellTable.java line 1261). Does somebody knows how to change the event target or create a new MouseOver event with a specific target. On 11 Feb., 15:03, Thomas Visser wrote: > CellTable keeps record of the 'hoveringRow'. This attribute can change > inside the onBrowserEvent2 (http://www.google.com/codesearch/p? > hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ > CellTable.java&q=hoveringRow%20package:http://google-web-toolkit > %5C.googlecode%5C.com&l=881) method. You could override that method, > call super and check for a change afterwards. That's the detection > part. Then add a method to your own CellTable to allow setting the > hovering row. > > I haven't tested it, but it sounds like it could work. Good luck! > > On Feb 11, 9:14 am, Musicman75 wrote: > > > > > > > > > Hello, > > > I've two celltables inside a horizontalPanel. > > > The first table contains line numers and the second one contains > > text. > > > I need to syncronize the hovered rows in both tables. If the user > > moves the mouse over one table, the row should be hovered in the > > second table too. > > > Does someone knows how I could solve this problem? > > I can't use only one table, because if the user selects the text in > > the second table, the line numbers shouldn't be selected. > > > Regards > > Stephan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Syncronize hovered rows in two cellTables
CellTable keeps record of the 'hoveringRow'. This attribute can change inside the onBrowserEvent2 (http://www.google.com/codesearch/p? hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/ CellTable.java&q=hoveringRow%20package:http://google-web-toolkit %5C.googlecode%5C.com&l=881) method. You could override that method, call super and check for a change afterwards. That's the detection part. Then add a method to your own CellTable to allow setting the hovering row. I haven't tested it, but it sounds like it could work. Good luck! On Feb 11, 9:14 am, Musicman75 wrote: > Hello, > > I've two celltables inside a horizontalPanel. > > The first table contains line numers and the second one contains > text. > > I need to syncronize the hovered rows in both tables. If the user > moves the mouse over one table, the row should be hovered in the > second table too. > > Does someone knows how I could solve this problem? > I can't use only one table, because if the user selects the text in > the second table, the line numbers shouldn't be selected. > > Regards > Stephan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Syncronize hovered rows in two cellTables
Hello, I've two celltables inside a horizontalPanel. The first table contains line numers and the second one contains text. I need to syncronize the hovered rows in both tables. If the user moves the mouse over one table, the row should be hovered in the second table too. Does someone knows how I could solve this problem? I can't use only one table, because if the user selects the text in the second table, the line numbers shouldn't be selected. Regards Stephan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.