Class ActionRegistrationUtils

java.lang.Object
com.levigo.jadice.web.client.util.action.ActionRegistrationUtils

public final class ActionRegistrationUtils extends Object
Utils class to support easy registering Actions to any Widget or global to the body
  • Method Details

    • registerGlobal

      public static ActionRegistrationUtils.UnregisterHandler registerGlobal(Action action)
      Registers the acceleratorKey of the Action to the body element. If the propagation of the event is not stopped by the application, it will be executed.
      Parameters:
      action - the Action to execute
      Returns:
      a handler to unregister the Action
    • register

      public static ActionRegistrationUtils.UnregisterHandler register(com.google.gwt.user.client.ui.IsWidget widget, Action action)
      Registers the acceleratorKey of the Action to the given widget.
      Parameters:
      widget - the Widget the action should be added to
      action - the Action to execute
      Returns:
      a handler to unregister the Action