Class NodeAddedEvent


public class NodeAddedEvent extends AbstractSmartEvent<NodeAddedHandler>
  • Constructor Details

  • Method Details

    • fire

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

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

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

      public EditNode getNewNode()
      node that was added
      Returns:
      node that was added
    • getParentNode

      public EditNode getParentNode()
      parent node of the node that was added
      Returns:
      parent node of the node that was added
    • getRootNode

      public EditNode getRootNode()
      root node of the edit context
      Returns:
      root node of the edit context