Example #1
0
 public void fireMouseOverEvent(Appointment appointment, Element element) {
   // we need to make sure we aren't re-firing the event
   // for the same appointment. This is a bit problematic,
   // because the mouse over event will fire for an appointment's
   // child elements (title label, footer, body, for example)
   // and will cause this method to be called with a null
   // appointment. this is a temp workaround, but basically
   // an appointment cannot be hovered twice in a row
   if (appointment != null && !appointment.equals(appointmentManager.getHoveredAppointment())) {
     appointmentManager.setHoveredAppointment(appointment);
     MouseOverEvent.fire(this, appointment, element);
   }
 }
Example #2
0
 public HandlerRegistration addMouseOverHandler(MouseOverHandler<Appointment> handler) {
   return addHandler(handler, MouseOverEvent.getType());
 }