Home » Eclipse Projects » Remote Application Platform (RAP) » Image disappear in table item
Image disappear in table item [message #93682] |
Mon, 16 June 2008 08:59  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030103050107060501000105
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hi all,
I want to show an image only in the selected item of a Table.
Attached there are two code snippets.
In RapTest1, when I select the first item the image shows correctly. But
when I select other item that the first, no image shows.
In RapTest2, if I select the second or the third item the image shows
correctly. When I select the first item and then the second item, the
image disappear.
It seems that images are only displayed if the first item of the Table
has the image.
Is this a bug of RWT Table control?
Thanks,
Enrico
--------------030103050107060501000105
Content-Type: application/octet-stream;
name="src.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="src.zip"
UEsDBBQAAAAIAINuezYltIMGOAEAAD0BAAAIAAAAaWNvbi5naWaNj98vAgEc wL9tRrPQFKWk
3cRuOsNZQ83EKWk55ceQYWG0edDirXpojSxLMlM3O9ftVgujrT8B06x5Mf4A m/kDvHk67j/o
8/Z5+3wmJq2DQx4pSOEDBHiez6Fd2hAgIdAGYJ2z6iMi03HDKmP0Zq2GaA2R aGJLMUtCsX87
7UohC2k0Xz4NFuZvysm713MP3bPB9G2z/TvcwG522N8NPgz29BBoh0fqqESf lOjES+Ys3AJR
OeRG8LgE4nXAdmryRvzeThRnp1JiUVoipuUyRtGcUas4BPlPgspAfqtEADhg gghPUO02Uz4b
popT3E+jq96gLH999j4fUrWWNycWK1xIH8w6SYSFb/e144kIK2UHZubda0OL pA7tUC+Sba3j
DrtmzDkzR+JLyytr9s0tb5LwXwavyFEw/QFQSwMEFAAAAAgAd3bQOIOF6Bn5 AgAA8gkAAA0A
AABSYXBUZXN0MS5qYXZhvVZta9swEP5e6H9Q/UkenUgyGIMyWJs6rSFLR+Ou H4drXRJR2TKS
nLRs/e+TbCd+i9tsg5mQWHfP3fPc6S0sToXUSMglgYizVAGRG02WMkxXLFLk qnw5Oz7qgXK2
gOg54kB8L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sBAhQAFAAAAAgAenbQOA+QWXv+ AgAADgoAAA0A
AAAAAAAAAAAgAAAAggQAAFJhcFRlc3QyLmphdmFQSwUGAAAAAAMAAwCsAAAA qwcAAAAA
--------------030103050107060501000105--
|
|
|
Re: Image disappear in table item [message #93726 is a reply to message #93682] |
Tue, 17 June 2008 05:04   |
Eclipse User |
|
|
|
Originally posted by: ifurnadjiev.innoopract.com
Hi Enrico,
I've reproduced it with the RAP Control Demo - Table. If there is no
image set to the first item, the image is not set to the rest. This
appear to be a bug. As a workaround you can set an transparent empty
image (16x16) instead of null when there is no image.
Best,
Ivan
Enrico Zanaga wrote:
> Hi all,
>
> I want to show an image only in the selected item of a Table.
> Attached there are two code snippets.
>
> In RapTest1, when I select the first item the image shows correctly.
> But when I select other item that the first, no image shows.
>
> In RapTest2, if I select the second or the third item the image shows
> correctly. When I select the first item and then the second item, the
> image disappear.
>
> It seems that images are only displayed if the first item of the Table
> has the image.
>
> Is this a bug of RWT Table control?
>
> Thanks,
> Enrico
|
|
|
Re: Image disappear in table item [message #93814 is a reply to message #93726] |
Tue, 17 June 2008 06:46   |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi,
This is rather a 'feature' than a bug, since SWT on Windows shows
this behavior.
From a sensible point of view, I also would consider this to be a bug.
But, as RWT implements a subset of SWT, not only in terms of API but
also semantically, it also adheres to its limitations.
Cheers,
Rüdiger
Ivan Furnadjiev wrote:
> Hi Enrico,
>
> I've reproduced it with the RAP Control Demo - Table. If there is no
> image set to the first item, the image is not set to the rest. This
> appear to be a bug. As a workaround you can set an transparent empty
> image (16x16) instead of null when there is no image.
>
> Best,
> Ivan
>
> Enrico Zanaga wrote:
>> Hi all,
>>
>> I want to show an image only in the selected item of a Table.
>> Attached there are two code snippets.
>>
>> In RapTest1, when I select the first item the image shows correctly.
>> But when I select other item that the first, no image shows.
>>
>> In RapTest2, if I select the second or the third item the image shows
>> correctly. When I select the first item and then the second item, the
>> image disappear.
>>
>> It seems that images are only displayed if the first item of the Table
>> has the image.
>>
>> Is this a bug of RWT Table control?
>>
>> Thanks,
>> Enrico
|
|
|
Re: Image disappear in table item [message #93859 is a reply to message #93814] |
Tue, 17 June 2008 09:22   |
Eclipse User |
|
|
|
Hi Rüdiger,
I'm not sure it's a 'feature' in SWT.
Running code snippet in SWT 3.3 and 3.4 on Windows, the Table initially
shows no icons. The first time I click on an item the icon appears and
remains, even clicking second and third item.
This is the behavior I expect that, even in RAP.
Regards,
Enrico
Rüdiger Herrmann ha scritto:
> Hi,
>
> This is rather a 'feature' than a bug, since SWT on Windows shows this
> behavior.
> From a sensible point of view, I also would consider this to be a bug.
> But, as RWT implements a subset of SWT, not only in terms of API but
> also semantically, it also adheres to its limitations.
>
> Cheers,
> Rüdiger
>
> Ivan Furnadjiev wrote:
>> Hi Enrico,
>>
>> I've reproduced it with the RAP Control Demo - Table. If there is no
>> image set to the first item, the image is not set to the rest. This
>> appear to be a bug. As a workaround you can set an transparent empty
>> image (16x16) instead of null when there is no image.
>>
>> Best,
>> Ivan
>>
>> Enrico Zanaga wrote:
>>> Hi all,
>>>
>>> I want to show an image only in the selected item of a Table.
>>> Attached there are two code snippets.
>>>
>>> In RapTest1, when I select the first item the image shows correctly.
>>> But when I select other item that the first, no image shows.
>>>
>>> In RapTest2, if I select the second or the third item the image shows
>>> correctly. When I select the first item and then the second item, the
>>> image disappear.
>>>
>>> It seems that images are only displayed if the first item of the
>>> Table has the image.
>>>
>>> Is this a bug of RWT Table control?
>>>
>>> Thanks,
>>> Enrico
|
|
|
Re: Image disappear in table item [message #93950 is a reply to message #93859] |
Thu, 19 June 2008 02:51  |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Enrico,
you are right, this should work. It was a misunderstanding on my
side. I file this bug:
237740: [Table] Changing image with selection does not work
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237740
Cheers,
Rüdiger
Enrico Zanaga wrote:
> Hi Rüdiger,
>
> I'm not sure it's a 'feature' in SWT.
>
> Running code snippet in SWT 3.3 and 3.4 on Windows, the Table initially
> shows no icons. The first time I click on an item the icon appears and
> remains, even clicking second and third item.
> This is the behavior I expect that, even in RAP.
>
> Regards,
> Enrico
>
>
> Rüdiger Herrmann ha scritto:
>> Hi,
>>
>> This is rather a 'feature' than a bug, since SWT on Windows shows this
>> behavior.
>> From a sensible point of view, I also would consider this to be a bug.
>> But, as RWT implements a subset of SWT, not only in terms of API but
>> also semantically, it also adheres to its limitations.
>>
>> Cheers,
>> Rüdiger
>>
>> Ivan Furnadjiev wrote:
>>> Hi Enrico,
>>>
>>> I've reproduced it with the RAP Control Demo - Table. If there is no
>>> image set to the first item, the image is not set to the rest. This
>>> appear to be a bug. As a workaround you can set an transparent empty
>>> image (16x16) instead of null when there is no image.
>>>
>>> Best,
>>> Ivan
>>>
>>> Enrico Zanaga wrote:
>>>> Hi all,
>>>>
>>>> I want to show an image only in the selected item of a Table.
>>>> Attached there are two code snippets.
>>>>
>>>> In RapTest1, when I select the first item the image shows correctly.
>>>> But when I select other item that the first, no image shows.
>>>>
>>>> In RapTest2, if I select the second or the third item the image
>>>> shows correctly. When I select the first item and then the second
>>>> item, the image disappear.
>>>>
>>>> It seems that images are only displayed if the first item of the
>>>> Table has the image.
>>>>
>>>> Is this a bug of RWT Table control?
>>>>
>>>> Thanks,
>>>> Enrico
>
>
|
|
|
Goto Forum:
Current Time: Mon Jul 14 21:37:17 EDT 2025
Powered by FUDForum. Page generated in 0.28443 seconds
|