brOOper / gwt-cal

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

Add getClicked() to the TimeBlockClickEvent #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Description of the new feature:

Please add the getClicked() method to the event TimeBlockClickEvent. This would 
allow me to understand where on the screen the person clicked so I can pop-up 
the add a new event dialog next to their mouse cursor.

Use Case:

Used when someone clicks on an empty date and time section.

Code / psuedo-code:

import
com.bradrydzewski.gwt.calendar.client.event.TimeBlockClickEvent;
import
com.bradrydzewski.gwt.calendar.client.event.TimeBlockClickHandler;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.Window;

public class TimeBlockClickHandlerImpl<S> implements
TimeBlockClickHandler<Date> {

       public void onTimeBlockClick(TimeBlockClickEvent<Date> event) {

               Element label = (Element)event.getClicked();

}

Original issue reported on code.google.com by shaun.cl...@solestruck.com on 2 Jul 2010 at 12:02

GoogleCodeExporter commented 8 years ago

Original comment by Brad.Ryd...@gmail.com on 19 Jul 2010 at 5:24