Class DayBodyClickEvent

All Implemented Interfaces:
Cancellable

public class DayBodyClickEvent extends BrowserEvent<DayBodyClickHandler> implements Cancellable
  • Constructor Details

  • Method Details

    • getFiringCanvas

      public Canvas getFiringCanvas()
      Returns the Canvas firing the event.
      Returns:
      Canvas firing the event
    • fire

      public static <S extends HasDayBodyClickHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
      Fires a open event on all registered handlers in the handler manager.If no such handlers exist, this method will do nothing.
      Type Parameters:
      S - The event source
      Parameters:
      source - the source of the handlers
      jsObj - the native event
    • getType

      public static GwtEvent.Type<DayBodyClickHandler> getType()
      Gets the type associated with this event.
      Returns:
      returns the handler type
    • dispatch

      protected void dispatch(DayBodyClickHandler handler)
      Specified by:
      dispatch in class GwtEvent<DayBodyClickHandler>
    • getAssociatedType

      public final GwtEvent.Type<DayBodyClickHandler> getAssociatedType()
      Specified by:
      getAssociatedType in class GwtEvent<DayBodyClickHandler>
    • cancel

      public void cancel()
      Call this method to cancel the default action
      Specified by:
      cancel in interface Cancellable
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if cancelled
    • getDate

      public Date getDate()
      JavaScript Date object representing this day
      Returns:
      JavaScript Date object representing this day
    • getEvents

      public CalendarEvent[] getEvents()
      events that fall on this day
      Returns:
      events that fall on this day
    • getRowNum

      public Integer getRowNum()
      the row number to which the parameter date belongs
      Returns:
      the row number to which the parameter date belongs
    • getColNum

      public Integer getColNum()
      the column number to which the parameter date belongs
      Returns:
      the column number to which the parameter date belongs
    • getCalendar

      public Calendar getCalendar()
      the calendar itself
      Returns:
      the calendar itself