Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » MouseTrackListener?
MouseTrackListener? [message #554734] Tue, 24 August 2010 09:27 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi,

how can I use the MouseTrackListener (i.e. on a label or button)?
I see the listener is available in RAP, but I can not see any references.
Is this not implemented, yet?

Regards,
Markus
Re: MouseTrackListener? [message #554736 is a reply to message #554734] Tue, 24 August 2010 09:29 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Some addition:

If it is not ready to use yet, when is it planned to be?

Is there a workaround to open a shell on mouse over of a button for creating
a custom tooltip?

Thanks,
Markus

"Markus Kr
Re: MouseTrackListener? [message #554745 is a reply to message #554736] Tue, 24 August 2010 09:51 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Markus,

both MouseTrackListener / MouseTrackAdapter classes have been added ONLY
for an easy single sourcing. See bug:
303391: Add MouseTrackListener / MouseTrackAdapter types
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
There are no references to them. I'm sorry to say, but it's very hard to
create a reasonable implementation due to many client/server turnarounds
needed.

Best,
Ivan

On 08/24/2010 12:29 PM, Markus Kr�ger wrote:
> Some addition:
>
> If it is not ready to use yet, when is it planned to be?
>
> Is there a workaround to open a shell on mouse over of a button for creating
> a custom tooltip?
>
> Thanks,
> Markus
>
> "Markus Kr�ger"<krueger@ion.ag> schrieb im Newsbeitrag
> news:i50385$5v1$1@build.eclipse.org...
>> Hi,
>>
>> how can I use the MouseTrackListener (i.e. on a label or button)?
>> I see the listener is available in RAP, but I can not see any references.
>> Is this not implemented, yet?
>>
>> Regards,
>> Markus
>>
>
Re: MouseTrackListener? [message #554746 is a reply to message #554745] Tue, 24 August 2010 10:15 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Ok, thanks for the info. Is there maybe a possible workaround to open a
shell on mouse over of a button for creating
a custom tooltip?

"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:i504nq$ihu$1@build.eclipse.org...
> Hi Markus,
>
> both MouseTrackListener / MouseTrackAdapter classes have been added ONLY
> for an easy single sourcing. See bug:
> 303391: Add MouseTrackListener / MouseTrackAdapter types
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
> There are no references to them. I'm sorry to say, but it's very hard to
> create a reasonable implementation due to many client/server turnarounds
> needed.
>
> Best,
> Ivan
>
> On 08/24/2010 12:29 PM, Markus Kr?ger wrote:
>> Some addition:
>>
>> If it is not ready to use yet, when is it planned to be?
>>
>> Is there a workaround to open a shell on mouse over of a button for
>> creating
>> a custom tooltip?
>>
>> Thanks,
>> Markus
>>
>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>> news:i50385$5v1$1@build.eclipse.org...
>>> Hi,
>>>
>>> how can I use the MouseTrackListener (i.e. on a label or button)?
>>> I see the listener is available in RAP, but I can not see any
>>> references.
>>> Is this not implemented, yet?
>>>
>>> Regards,
>>> Markus
>>>
>>
Re: MouseTrackListener? [message #554753 is a reply to message #554746] Tue, 24 August 2010 10:24 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
The only thing that I can imagine is to create a custom widget
(Button) that informs the server for mouse over event.

On 08/24/2010 1:15 PM, Markus Kr�ger wrote:
> Ok, thanks for the info. Is there maybe a possible workaround to open a
> shell on mouse over of a button for creating
> a custom tooltip?
>
> "Ivan Furnadjiev"<ivan@eclipsesource.com> schrieb im Newsbeitrag
> news:i504nq$ihu$1@build.eclipse.org...
>> Hi Markus,
>>
>> both MouseTrackListener / MouseTrackAdapter classes have been added ONLY
>> for an easy single sourcing. See bug:
>> 303391: Add MouseTrackListener / MouseTrackAdapter types
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
>> There are no references to them. I'm sorry to say, but it's very hard to
>> create a reasonable implementation due to many client/server turnarounds
>> needed.
>>
>> Best,
>> Ivan
>>
>> On 08/24/2010 12:29 PM, Markus Kr?ger wrote:
>>> Some addition:
>>>
>>> If it is not ready to use yet, when is it planned to be?
>>>
>>> Is there a workaround to open a shell on mouse over of a button for
>>> creating
>>> a custom tooltip?
>>>
>>> Thanks,
>>> Markus
>>>
>>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>>> news:i50385$5v1$1@build.eclipse.org...
>>>> Hi,
>>>>
>>>> how can I use the MouseTrackListener (i.e. on a label or button)?
>>>> I see the listener is available in RAP, but I can not see any
>>>> references.
>>>> Is this not implemented, yet?
>>>>
>>>> Regards,
>>>> Markus
>>>>
>
Re: MouseTrackListener? [message #554754 is a reply to message #554753] Tue, 24 August 2010 10:45 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Is there some example custom widget I can start with?

"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:i506ln$59q$1@build.eclipse.org...
> The only thing that I can imagine is to create a custom widget (Button)
> that informs the server for mouse over event.
>
> On 08/24/2010 1:15 PM, Markus Kr?ger wrote:
>> Ok, thanks for the info. Is there maybe a possible workaround to open a
>> shell on mouse over of a button for creating
>> a custom tooltip?
>>
>> "Ivan Furnadjiev"<ivan@eclipsesource.com> schrieb im Newsbeitrag
>> news:i504nq$ihu$1@build.eclipse.org...
>>> Hi Markus,
>>>
>>> both MouseTrackListener / MouseTrackAdapter classes have been added ONLY
>>> for an easy single sourcing. See bug:
>>> 303391: Add MouseTrackListener / MouseTrackAdapter types
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
>>> There are no references to them. I'm sorry to say, but it's very hard to
>>> create a reasonable implementation due to many client/server turnarounds
>>> needed.
>>>
>>> Best,
>>> Ivan
>>>
>>> On 08/24/2010 12:29 PM, Markus Kr?ger wrote:
>>>> Some addition:
>>>>
>>>> If it is not ready to use yet, when is it planned to be?
>>>>
>>>> Is there a workaround to open a shell on mouse over of a button for
>>>> creating
>>>> a custom tooltip?
>>>>
>>>> Thanks,
>>>> Markus
>>>>
>>>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>>>> news:i50385$5v1$1@build.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> how can I use the MouseTrackListener (i.e. on a label or button)?
>>>>> I see the listener is available in RAP, but I can not see any
>>>>> references.
>>>>> Is this not implemented, yet?
>>>>>
>>>>> Regards,
>>>>> Markus
>>>>>
>>
Re: MouseTrackListener? [message #554757 is a reply to message #554754] Tue, 24 August 2010 10:48 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Never mind, just found this
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. rap.help/help/html/advanced/custom-widget.html

I'll try it and thanks for the hint.


"Markus Kr
Re: MouseTrackListener? [message #555000 is a reply to message #554746] Wed, 25 August 2010 06:52 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
I found a very dirty workaround for providing some better formatted tooltip
information on a field.
If you use fielddecorators, than you get a tooltip on them that can actually
work with html-tags.
That way you can at least provide some better formatted information in a
tooltip on the decorator icon, but this works
for me.

The strange thing is that I can not understand, why a MouseTrackListener can
not be implemented, because for
field decorator there must be some mechanism that reacts on mouseover. At
least the method "hover" could be implemented the same way, and that would
be better than nothing.

Maybe someone of the RAP team can provide some info on how the
tooltip/mouseover on decorator work and why this mechanism can not be
adapted to the MouseTrackListener?

Regards,
Markus

"Markus Kr
Re: MouseTrackListener? [message #555008 is a reply to message #555000] Wed, 25 August 2010 07:26 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Markus,

It's great that you found a workaround of your problem. Now on the topic
- ControlDecoration. To implement the ControlDecoration we created a
separate internal widget -
org.eclipse.swt.internal.widgets.ControlDecorator. Its has it's own
client side widget - widget org.eclipse.rwt.widgets.ControlDecorator,
which represent the decoration icon. We show/hide the tooltip on this
widget entirely on the client side (no mouse track events, no
client/server turnaround).

Best,
Ivan

On 08/25/2010 9:52 AM, Markus Kr�ger wrote:
> I found a very dirty workaround for providing some better formatted tooltip
> information on a field.
> If you use fielddecorators, than you get a tooltip on them that can actually
> work with html-tags.
> That way you can at least provide some better formatted information in a
> tooltip on the decorator icon, but this works
> for me.
>
> The strange thing is that I can not understand, why a MouseTrackListener can
> not be implemented, because for
> field decorator there must be some mechanism that reacts on mouseover. At
> least the method "hover" could be implemented the same way, and that would
> be better than nothing.
>
> Maybe someone of the RAP team can provide some info on how the
> tooltip/mouseover on decorator work and why this mechanism can not be
> adapted to the MouseTrackListener?
>
> Regards,
> Markus
>
> "Markus Kr�ger"<krueger@ion.ag> schrieb im Newsbeitrag
> news:i5063d$u6v$1@build.eclipse.org...
>> Ok, thanks for the info. Is there maybe a possible workaround to open a
>> shell on mouse over of a button for creating
>> a custom tooltip?
>>
>> "Ivan Furnadjiev"<ivan@eclipsesource.com> schrieb im Newsbeitrag
>> news:i504nq$ihu$1@build.eclipse.org...
>>> Hi Markus,
>>>
>>> both MouseTrackListener / MouseTrackAdapter classes have been added ONLY
>>> for an easy single sourcing. See bug:
>>> 303391: Add MouseTrackListener / MouseTrackAdapter types
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
>>> There are no references to them. I'm sorry to say, but it's very hard to
>>> create a reasonable implementation due to many client/server turnarounds
>>> needed.
>>>
>>> Best,
>>> Ivan
>>>
>>> On 08/24/2010 12:29 PM, Markus Kr?ger wrote:
>>>> Some addition:
>>>>
>>>> If it is not ready to use yet, when is it planned to be?
>>>>
>>>> Is there a workaround to open a shell on mouse over of a button for
>>>> creating
>>>> a custom tooltip?
>>>>
>>>> Thanks,
>>>> Markus
>>>>
>>>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>>>> news:i50385$5v1$1@build.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> how can I use the MouseTrackListener (i.e. on a label or button)?
>>>>> I see the listener is available in RAP, but I can not see any
>>>>> references.
>>>>> Is this not implemented, yet?
>>>>>
>>>>> Regards,
>>>>> Markus
>>>>>
>>
>
Re: MouseTrackListener? [message #555323 is a reply to message #555008] Thu, 26 August 2010 10:04 Go to previous message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Ah ok, so what you actually suggested me to do (create a custom button) is
already done with the control decoration.
Thank you very much for the information. This makes it better to understand
why it works there.

Regards,
Markus

"Ivan Furnadjiev" <ivan@eclipsesource.com> schrieb im Newsbeitrag
news:i52gio$fuq$1@build.eclipse.org...
> Hi Markus,
>
> It's great that you found a workaround of your problem. Now on the topic -
> ControlDecoration. To implement the ControlDecoration we created a
> separate internal widget -
> org.eclipse.swt.internal.widgets.ControlDecorator. Its has it's own client
> side widget - widget org.eclipse.rwt.widgets.ControlDecorator, which
> represent the decoration icon. We show/hide the tooltip on this widget
> entirely on the client side (no mouse track events, no client/server
> turnaround).
>
> Best,
> Ivan
>
> On 08/25/2010 9:52 AM, Markus Kr?ger wrote:
>> I found a very dirty workaround for providing some better formatted
>> tooltip
>> information on a field.
>> If you use fielddecorators, than you get a tooltip on them that can
>> actually
>> work with html-tags.
>> That way you can at least provide some better formatted information in a
>> tooltip on the decorator icon, but this works
>> for me.
>>
>> The strange thing is that I can not understand, why a MouseTrackListener
>> can
>> not be implemented, because for
>> field decorator there must be some mechanism that reacts on mouseover. At
>> least the method "hover" could be implemented the same way, and that
>> would
>> be better than nothing.
>>
>> Maybe someone of the RAP team can provide some info on how the
>> tooltip/mouseover on decorator work and why this mechanism can not be
>> adapted to the MouseTrackListener?
>>
>> Regards,
>> Markus
>>
>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>> news:i5063d$u6v$1@build.eclipse.org...
>>> Ok, thanks for the info. Is there maybe a possible workaround to open a
>>> shell on mouse over of a button for creating
>>> a custom tooltip?
>>>
>>> "Ivan Furnadjiev"<ivan@eclipsesource.com> schrieb im Newsbeitrag
>>> news:i504nq$ihu$1@build.eclipse.org...
>>>> Hi Markus,
>>>>
>>>> both MouseTrackListener / MouseTrackAdapter classes have been added
>>>> ONLY
>>>> for an easy single sourcing. See bug:
>>>> 303391: Add MouseTrackListener / MouseTrackAdapter types
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=303391
>>>> There are no references to them. I'm sorry to say, but it's very hard
>>>> to
>>>> create a reasonable implementation due to many client/server
>>>> turnarounds
>>>> needed.
>>>>
>>>> Best,
>>>> Ivan
>>>>
>>>> On 08/24/2010 12:29 PM, Markus Kr?ger wrote:
>>>>> Some addition:
>>>>>
>>>>> If it is not ready to use yet, when is it planned to be?
>>>>>
>>>>> Is there a workaround to open a shell on mouse over of a button for
>>>>> creating
>>>>> a custom tooltip?
>>>>>
>>>>> Thanks,
>>>>> Markus
>>>>>
>>>>> "Markus Kr?ger"<krueger@ion.ag> schrieb im Newsbeitrag
>>>>> news:i50385$5v1$1@build.eclipse.org...
>>>>>> Hi,
>>>>>>
>>>>>> how can I use the MouseTrackListener (i.e. on a label or button)?
>>>>>> I see the listener is available in RAP, but I can not see any
>>>>>> references.
>>>>>> Is this not implemented, yet?
>>>>>>
>>>>>> Regards,
>>>>>> Markus
>>>>>>
>>>
>>
Previous Topic:[ANN] RAP 1.4 M1 is available
Next Topic:RAP Deployment on Tomcat with WYSIWYG editor
Goto Forum:
  


Current Time: Fri Nov 08 23:31:02 GMT 2024

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