Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Changing the Text color of the Text while entering the data in the cell(Cell Text color change and once moved to other cell, the color set back to black)
Changing the Text color of the Text while entering the data in the cell [message #1457350] Fri, 31 October 2014 08:29 Go to next message
ambuj bhargava is currently offline ambuj bhargavaFriend
Messages: 19
Registered: July 2014
Junior Member
Hi

In the Nat Table, I need to change the Text color of the cell while entering the data in the cell.
As soon as the user selects or clicks on any other cell, the Text color must be set to black.

Kindly suggest how to implement the same.
Re: Changing the Text color of the Text while entering the data in the cell [message #1458392 is a reply to message #1457350] Sat, 01 November 2014 09:57 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
That depends on when the colour should change. If it should change if the value is invalid, use the RenderErrorHandling as shown in the ErrorHandlingExample. If you need some custom behavior you need to implement a custom CellEditor that extends TextCellEditor and adds custom behavior on keypress.
Previous Topic:Triggering events in NatTable
Next Topic:ILayerListener Issue
Goto Forum:
  


Current Time: Fri Mar 05 05:44:11 GMT 2021

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

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

Back to the top