Class CommandAPI

    • Constructor Detail

      • CommandAPI

        public CommandAPI​(Context context,
                          Command command)
        Generates a new object containing a command that can be executed on the given context.
        Parameters:
        context - The context where to bind the command to.
        command - The command that should be bind on.
    • Method Detail

      • expose

        public void expose​(com.google.gwt.core.client.JavaScriptObject target)
        Exposes the native JavaScript functions on to the given target object. The functions are canExecute() and execute().
        Parameters:
        target - The target object to bind the JavaScript functions to.