brOOper / gwt-cal

Automatically exported from code.google.com/p/gwt-cal
0 stars 0 forks source link

Add a mouseOver handler #74

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Description of the new feature:

this feature might be supplementary to the issue 71 that I posted 
(http://code.google.com/p/gwt-cal/issues/detail?id=71).

In order to have a more powerfull "tool-tip" (the standard one of the issue 71 
is limited to a simple text and cannot contain html), I tried to add an 
additionnal handler to the already implemented 
ones(http://code.google.com/p/gwt-cal/wiki/HandlingEvents). So I made an 
"onMouseOverHandler" which can be used like the other handlers. It reacts when 
the mouse is in the Appointment area. I tried to respect the guideline of your 
project. 

Thanks

I give you the patch in attach file.

Original issue reported on code.google.com by pier...@pvittet.com on 26 Jul 2010 at 2:32

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks Pierre for the patch. This functionality is now added to trunk, however, 
it may need some tweaking to behave perfectly.

Right now the only issue is that appointments in the DayView have 3 child 
elements, a heading, body and footer divs. Each time these divs receive the 
mouse, they also fire the mouse over events. This was causing the mouse over 
event to fire multiple times for a single appointment.

I made a small change to prevent onMouseOver from firing multiple times for a 
single appointment. This means, however, if you hover and then leave the 
appointment, then hover again, no event will be fired.

We can perfect this behavior in future version... but this is a good start

Original comment by Brad.Ryd...@gmail.com on 15 Aug 2010 at 8:30

GoogleCodeExporter commented 8 years ago
Issue 71 has been merged into this issue.

Original comment by Brad.Ryd...@gmail.com on 15 Aug 2010 at 8:31

GoogleCodeExporter commented 8 years ago
FYI, I added an example of how to use the event in the wiki: 
http://code.google.com/p/gwt-cal/wiki/HandlingEvents

The example code includes using a DecoratedPopupPanel which is basically a 
tooltip but way more flexible and can contain other gwt widgets.

Original comment by Brad.Ryd...@gmail.com on 15 Aug 2010 at 8:38