Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Setting the focus on the first row a a table
Setting the focus on the first row a a table [message #1449351] Tue, 21 October 2014 04:14 Go to next message
Eclipse UserFriend
Hi,

I am trying to set the focus on the first row of a table. After setting the focus on the row, the user should be able to use the arrow keys up and in down in other move the focus from one row to another.

Until now I am able to set the selected row. In the browser I can see the selected row with the corresponding background color. That works fine. But If I use the arrow keys I see that the focus is still on the search button I clicked for search of data.

Well, I habe tryed to call "requestFocus" for the Table. This does not work.
Further I have to set the focus by using the methods "getUIFacade().fireRowActionFromUI(firstVisibleRow);" and "getUIFacade().fireRowClickFromUI(firstVisibleRow);". Both methods do not set the focus as required.

Can you help?
Re: Setting the focus on the first row a a table [message #1449369 is a reply to message #1449351] Tue, 21 October 2014 04:50 Go to previous messageGo to next message
Eclipse UserFriend
It might depend on where in your code you are calling requestFocus(). Try wrapping the call in a ClientSyncJob.
Re: Setting the focus on the first row a a table [message #1450505 is a reply to message #1449369] Wed, 22 October 2014 10:11 Go to previous message
Eclipse UserFriend
Thanks,

It works using ClinetSyncJob
Previous Topic:Possible bug in class AbstractTable
Next Topic:exe compiled with tycho => unexpected error
Goto Forum:
  


Current Time: Fri Nov 07 22:54:03 EST 2025

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

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

Back to the top