Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ITableColorProvider
ITableColorProvider [message #94943] Mon, 30 June 2008 07:31 Go to next message
NkD Missing name is currently offline NkD Missing nameFriend
Messages: 61
Registered: July 2009
Member
ITableColorProvider have bug in background color (wrong showing on wrong
columns). Foreground color seem that work well.
Re: ITableColorProvider [message #94975 is a reply to message #94943] Mon, 30 June 2008 07:55 Go to previous messageGo to next message
NkD Missing name is currently offline NkD Missing nameFriend
Messages: 61
Registered: July 2009
Member
Ouch, sorry. I made few other test and background color works well. I
dont know where I did mistake. My apologies.

Michal NkD Nikodím napsal(a):
> ITableColorProvider have bug in background color (wrong showing on wrong
> columns). Foreground color seem that work well.
Re: ITableColorProvider [message #94988 is a reply to message #94975] Mon, 30 June 2008 08:16 Go to previous messageGo to next message
NkD Missing name is currently offline NkD Missing nameFriend
Messages: 61
Registered: July 2009
Member
Hmm, sorry but there are mistake. Background color appears unpredictable
in various columns. Sometime whole row of table have background color
from first column. Sometime table work well. Ussually it is wrong if I
use red background color (Graphics.getColor(255,0,0)) for first column
and for other column use white background color (255,255,255) or null,
then whole row have red color.

I have test table with three columns and some combination color work
well (for example Red, Green Blue). I dont know if this mistake depend
on color value... I know, it's strange. But some combination works and
some don't.
It's seems to me that white color is same as null, and background color
is hold from previous call ITableColotProvider.



Michal NkD Nikodím napsal(a):
> Ouch, sorry. I made few other test and background color works well. I
> dont know where I did mistake. My apologies.
>
> Michal NkD Nikodím napsal(a):
>> ITableColorProvider have bug in background color (wrong showing on
>> wrong columns). Foreground color seem that work well.
Re: ITableColorProvider [message #95166 is a reply to message #94988] Mon, 30 June 2008 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Michal,

if you have some standalone code that reproduces the problem, you
could file a bugzilla.

I assume that the actual error source is the Table widget. In order
to reproduce it, you might be better off to set the colors directly
on the widget.

Cheers,
Rüdiger

Michal NkD Nikodím wrote:
> Hmm, sorry but there are mistake. Background color appears unpredictable
> in various columns. Sometime whole row of table have background color
> from first column. Sometime table work well. Ussually it is wrong if I
> use red background color (Graphics.getColor(255,0,0)) for first column
> and for other column use white background color (255,255,255) or null,
> then whole row have red color.
>
> I have test table with three columns and some combination color work
> well (for example Red, Green Blue). I dont know if this mistake depend
> on color value... I know, it's strange. But some combination works and
> some don't.
> It's seems to me that white color is same as null, and background color
> is hold from previous call ITableColotProvider.
>
>
>
> Michal NkD Nikodím napsal(a):
>> Ouch, sorry. I made few other test and background color works well. I
>> dont know where I did mistake. My apologies.
>>
>> Michal NkD Nikodím napsal(a):
>>> ITableColorProvider have bug in background color (wrong showing on
>>> wrong columns). Foreground color seem that work well.
Re: ITableColorProvider [message #96275 is a reply to message #95166] Thu, 03 July 2008 09:43 Go to previous message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
I've also found this problem, there is a snippet in bug 237134 that
reproduces the problem. I intend to move it to a new bug, but haven't
got the time.

In the meantime if you replace the following code of line 201 in
TableItem.js (org.eclipse.rwt.q07 bundle):

if( this._backgrounds && this._backgrounds[ i ] ) {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ this._backgrounds[ i ]
+ ";";
}

with

if( this._backgrounds && this._backgrounds[ i ] ) {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ this._backgrounds[ i ]
+ ";";
} else {
background
= org.eclipse.swt.widgets.TableItem.BACKGROUND
+ "#f8f8ff"
+ ";";
}

solves the problem. This was done using the latest CVS head.

Tiago

Rüdiger Herrmann wrote:
> Michal,
>
> if you have some standalone code that reproduces the problem, you could
> file a bugzilla.
>
> I assume that the actual error source is the Table widget. In order to
> reproduce it, you might be better off to set the colors directly on the
> widget.
>
> Cheers,
> Rüdiger
>
> Michal NkD Nikodím wrote:
>> Hmm, sorry but there are mistake. Background color appears
>> unpredictable in various columns. Sometime whole row of table have
>> background color from first column. Sometime table work well. Ussually
>> it is wrong if I use red background color (Graphics.getColor(255,0,0))
>> for first column and for other column use white background color
>> (255,255,255) or null, then whole row have red color.
>>
>> I have test table with three columns and some combination color work
>> well (for example Red, Green Blue). I dont know if this mistake depend
>> on color value... I know, it's strange. But some combination works and
>> some don't.
>> It's seems to me that white color is same as null, and background
>> color is hold from previous call ITableColotProvider.
>>
>>
>>
>> Michal NkD Nikodím napsal(a):
>>> Ouch, sorry. I made few other test and background color works well. I
>>> dont know where I did mistake. My apologies.
>>>
>>> Michal NkD Nikodím napsal(a):
>>>> ITableColorProvider have bug in background color (wrong showing on
>>>> wrong columns). Foreground color seem that work well.
Previous Topic:how can i add my servlet to RAP jetty server?
Next Topic:Getting HTTP ERROR: 404 when running RAP Application
Goto Forum:
  


Current Time: Fri Apr 26 16:14:31 GMT 2024

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

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

Back to the top