Class BackgroundMouseUpEvent

All Implemented Interfaces:
Cancellable

public class BackgroundMouseUpEvent extends BrowserEvent<BackgroundMouseUpHandler> implements Cancellable
  • Constructor Details

    • BackgroundMouseUpEvent

      public BackgroundMouseUpEvent(JavaScriptObject jsObj)
  • Method Details

    • getFiringCanvas

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

      public static <S extends HasBackgroundMouseUpHandlers & 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<BackgroundMouseUpHandler> getType()
      Gets the type associated with this event.
      Returns:
      returns the handler type
    • dispatch

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

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

      public void cancel()
      Call this method to suppress default behavior of showing a dialog to add a new event with the passed dates.
      Specified by:
      cancel in interface Cancellable
    • isCancelled

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

      public Date getStartDate()
      the datetime of the slot where the mouse button was depressed
      Returns:
      the datetime of the slot where the mouse button was depressed
    • getEndDate

      public Date getEndDate()
      the datetime of the slot where the mouse button was released
      Returns:
      the datetime of the slot where the mouse button was released