| 
| Navigating Table cells in RAP on client side [message #840693] | Tue, 10 April 2012 07:58  |  | 
| Eclipse User  |  |  |  |  | Hi, We had a requirement of having all tables to be cell navigable where the user can navigate using UP,DOWN,LEFT,RIGHT keys(technically highlighting the cell with a darker color). Currently we are handling this on server side. It is slow sometimes and we have found that most of the time is taken in network traffic.
 Since Client Side scripting has very limited scope, we were trying a POC to handle this at the client side code itself.After going through the Qooxdoo code for Tree,TreeItem,TreeRow, TreeRowContainer etc we found that Tree.js->_onKeyPress function handles all types of key events and has a different handler for each of the aforesaid keys. Though we are able to get hold of the focusItem (TreeItem) but we are unable to get the cells (bounds).
 Any pointers will be of great help. Any other suggestions are also welcome.
 |  |  |  | 
| 
| Re: Navigating Table cells in RAP on client side [message #844944 is a reply to message #840693] | Sat, 14 April 2012 10:51  |  | 
| Eclipse User  |  |  |  |  | Hi Avrajit, 
 There is no such concept as a selected cell, neither in the SWT Tree nor
 in RAP's client-side Tree implementation. The JFace cell editors mimic
 cell selection by suppressing the painting of the selection and setting
 cell colors on the selected item.
 
 To implement real client-side cell navigation, you would have to track
 the selected column on the client and also report it back to the server
 with the next synchronization.
 
 Although the key events could in theory be wired with the client
 scripting, I imagine that a proper solution would rather add the concept
 of cell selection to the client-side Tree implementation and provide
 some API extension to enable it and to get the selected column in Java code.
 
 It might even be possible to adapt the JFace cell editor code to use
 this extension. However, I'm sure this would require a considerable
 amount of work...
 
 Best regards,
 Ralf
 
 --
 Ralf Sternberg
 
 Twitter: @EclipseRAP
 Blog: http://eclipsesource.com/blogs/
 
 Professional services for RAP and RCP?
 http://eclipsesource.com/services/rap/
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05578 seconds