Class DrawEvent


public class DrawEvent extends GwtEvent<DrawHandler>
  • Constructor Details

    • DrawEvent

      public DrawEvent(String ID)
  • Method Details

    • getID

      public String getID()
    • getFiringCanvas

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

      public static <S extends HasDrawHandlers & HasHandlers> void fire(S source, String ID)
      Fires a close event on all registered handlers in the handler manager.
      Type Parameters:
      T - the target type
      S - The event source
      Parameters:
      source - the source of the handlers
      target - the target
      autoClosed - was the target closed automatically
    • getType

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

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

      public final GwtEvent.Type<DrawHandler> getAssociatedType()
      Specified by:
      getAssociatedType in class GwtEvent<DrawHandler>