Retrieving RAP internal icons [message #124491] |
Fri, 13 March 2009 10:43  |
Eclipse User |
|
|
|
Hi,
how can I retrieve the icons [+] and [-] of a Tree?
I want to implement my own tree widget, but I wish to use the same icons.
Thanks
Enrico
|
|
|
|
|
|
Re: Retrieving RAP internal icons [message #125381 is a reply to message #124791] |
Tue, 17 March 2009 14:10  |
Eclipse User |
|
|
|
Hi Benny,
the current Tree widget implemented in RAP consumes too much memory in
IE 7. I need to load thousands of items so the Tree is unusable for me.
I've re-implemented my own tree widget using a Table widget with [+] and
[-] icons and spaces to show indentation. This implementation is fast
and memory-saver!
Bye
Enrico
Benjamin Muskalla wrote:
> Hi Enrico,
>
> I'm just curious - what are you trying to achieve? Do you want to
> implement your own tree widget? If so, what are the reasons for such an
> investment?
>
> Cheers and thanks in advance
> Benny
>
> Enrico Zanaga wrote:
>> Thank you very much!
>> I'll do a lot of attention!
>>
>>
>> Rüdiger Herrmann ha scritto:
>>> Enrico,
>>>
>>> these images reside in the org.eclipse.rap.rwt.q07 plug-in. E.g.
>>> resources/widgets/rap/tree/plus.gif. Thus you should be able to get a
>>> reference like this:
>>> String name = "resources/widgets/rap/tree/plus.gif";
>>> ClassLoader loader = RWT.class.getClassLoader();
>>> Graphics.getImage( name, loader );
>>>
>>> *BUT* with doing so you access implementation details that may change
>>> without advance notice.
>>>
>>> HTH
>>> Rüdiger
>>>
>>> Enrico Zanaga wrote:
>>>> Hi,
>>>>
>>>> how can I retrieve the icons [+] and [-] of a Tree?
>>>> I want to implement my own tree widget, but I wish to use the same
>>>> icons.
>>>>
>>>> Thanks
>>>> Enrico
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04069 seconds