org.xwiki.gwt.wysiwyg.client.plugin.macro
Interface MacroServiceAsync

All Known Implementing Classes:
MacroServiceAsyncCacheProxy

public interface MacroServiceAsync

Service interface used on the client by the macro plug-in. It should have all the methods from MacroService with an additional AsyncCallback parameter. This is specific to GWT's architecture.

Version:
$Id: 8a4a9f71137ddacaa7a3d48ca4c42a3cb332130c $

Method Summary
 void getMacroDescriptor(String macroId, String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<MacroDescriptor> async)
          Makes a request to the server to get the descriptor for the specified macro.
 void getMacroDescriptors(String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<List<MacroDescriptor>> async)
          Makes a request to the server to get all the macro descriptors for the specified syntax.
 

Method Detail

getMacroDescriptor

void getMacroDescriptor(String macroId,
                        String syntaxId,
                        com.google.gwt.user.client.rpc.AsyncCallback<MacroDescriptor> async)
Makes a request to the server to get the descriptor for the specified macro.

Parameters:
macroId - a macro identifier
syntaxId - a syntax identifier
async - the call-back to be used for notifying the caller after receiving the response from the server

getMacroDescriptors

void getMacroDescriptors(String syntaxId,
                         com.google.gwt.user.client.rpc.AsyncCallback<List<MacroDescriptor>> async)
Makes a request to the server to get all the macro descriptors for the specified syntax.

Parameters:
syntaxId - a syntax identifier
async - the call-back to be used for notifying the caller after receiving the response from the server


Copyright © 2004-2012 XWiki. All Rights Reserved.