Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Row clicked in rowTemplate Selection event(How to get the row selected when using rowTemplates)
Row clicked in rowTemplate Selection event [message #1194413] Mon, 18 November 2013 08:51 Go to next message
Eclipse UserFriend
How do I determine which ROW of a table/tree was selected when using the new rowTemplate feature in RAP 2.2 M3 to detect CELL selection?
I can use the event.text to get the cell's name, which is great and event.detail is RWT.CELL, but where can I find the row index clicked?
It would be good to have event.index populated with this information...?
Thanks, John
Re: Row clicked in rowTemplate Selection event [message #1194938 is a reply to message #1194413] Mon, 18 November 2013 14:33 Go to previous messageGo to next message
Eclipse UserFriend
You mean the bindingIndex? You can't. The cell index does not
necessarily match the column index that the cell is bound to, that's why
we thought a name was more appropriate. But you can include the
bindingIndex in the cell name if you need it - would that help?

The alternative would be a dedicated listener type for cell selection.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Row clicked in rowTemplate Selection event [message #1196155 is a reply to message #1194938] Tue, 19 November 2013 04:20 Go to previous messageGo to next message
Eclipse UserFriend
no, not the column... I need the row
maybe I'm being thick about it (normal state!) but I couldn't see any data to give me the row involved in the cell click
Re: Row clicked in rowTemplate Selection event [message #1197336 is a reply to message #1196155] Tue, 19 November 2013 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Same as in SWT, you don't get the row index, but the item: event.item

Does that help?

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Row clicked in rowTemplate Selection event [message #1198309 is a reply to message #1197336] Wed, 20 November 2013 03:51 Go to previous message
Eclipse UserFriend
Thanks Ralf, yes, I was being stupid!
Previous Topic:RAP Theme Examples buggy
Next Topic:rowTemplate setVerticalAlignment doing nothing
Goto Forum:
  


Current Time: Sat Jul 05 04:36:31 EDT 2025

Powered by FUDForum. Page generated in 0.05203 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top