Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Default Table selection or hover
Default Table selection or hover [message #755767] Wed, 09 November 2011 14:24 Go to next message
Avrajit Chatterjee is currently offline Avrajit ChatterjeeFriend
Messages: 68
Registered: September 2011
Member
Hi,

We are using Table in RAP. We get this default row selection color when we hover on the rows and when we select a particular row. We found out that using css we can handle the color selection. But we want to remove the row selection color and implement a programmatic solution by which we can have highlight the rows by darkening the background colors of the cell only. Do you have any pointers or suggestions on how to handle this.

Avrajit
Re: Default Table selection or hover [message #755852 is a reply to message #755767] Wed, 09 November 2011 19:50 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Avrajit,

to prevent a Table from highlighting selected items, you can use:
table.setData( Table.ALWAYS_HIDE_SELECTION, Boolean.TRUE );
However, I cannot recommend this approach. It uses internals that may
change without prior notice.
If you describe why you want to hide the selection, we may find a more
appropriate solution.

HTH
Rüdiger

On 09.11.2011 15:24, Avrajit wrote:
> Hi,
>
> We are using Table in RAP. We get this default row selection color when
> we hover on the rows and when we select a particular row. We found out
> that using css we can handle the color selection. But we want to remove
> the row selection color and implement a programmatic solution by which
> we can have highlight the rows by darkening the background colors of the
> cell only. Do you have any pointers or suggestions on how to handle this.
>
> Avrajit
Re: Default Table selection or hover [message #756126 is a reply to message #755852] Fri, 11 November 2011 06:28 Go to previous messageGo to next message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
In our application, when a cell is selected, we mark that row as selected. We want to hide the row selection as we want the selected cell to have a different background from others to reflect the selection. Row selection causes the whole row to have a particular background which is not desirable in our case.
Re: Default Table selection or hover [message #756127 is a reply to message #755852] Fri, 11 November 2011 06:28 Go to previous message
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
In our application, when a cell is selected, we mark that row as selected. We want to hide the row selection as we want the selected cell to have a different background from others to reflect the selection. Row selection causes the whole row to have a particular background which is not desirable in our case.
Previous Topic:RAP and JSR-303 support for JFace Databinding Validators
Next Topic:Default Table selection or hover
Goto Forum:
  


Current Time: Sat Apr 20 15:10:48 GMT 2024

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

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

Back to the top