Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Navigating Table cells in RAP on client side(Navigating Table cells in RAP on client side)
Navigating Table cells in RAP on client side [message #840693] Tue, 10 April 2012 11:58 Go to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
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 14:51 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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/
Previous Topic:Session Timeout Warning
Next Topic:About org.eclipse.rap.rwt.supplemental.filedialog
Goto Forum:
  


Current Time: Sat Jul 27 06:04:15 GMT 2024

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

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

Back to the top