org.xwiki.gwt.wysiwyg.client.converter
Interface HTMLConverterAsync


public interface HTMLConverterAsync

Converter interface to be used on the client. It should have all the methods from HTMLConverter with an additional AsyncCallback parameter. This is specific to GWT's architecture.

Version:
$Id: HTMLConverterAsync.java 26786 2010-02-07 16:46:17Z mflorea $

Method Summary
 void fromHTML(java.lang.String html, java.lang.String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Makes a request to the server to convert the given HTML fragment to the specified syntax.
 void parseAndRender(java.lang.String html, java.lang.String syntax, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Makes a request to the server to parse the given HTML fragment and render the result in annotated XHTML syntax.
 void toHTML(java.lang.String source, java.lang.String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Makes a request to the server to convert the given source text from the specified syntax to HTML.
 

Method Detail

toHTML

void toHTML(java.lang.String source,
            java.lang.String syntaxId,
            com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Makes a request to the server to convert the given source text from the specified syntax to HTML.

Parameters:
source - the text to be converted
syntaxId - the syntax identifier
callback - the object used to notify the caller when the server response is received

fromHTML

void fromHTML(java.lang.String html,
              java.lang.String syntaxId,
              com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Makes a request to the server to convert the given HTML fragment to the specified syntax.

Parameters:
html - the HTML text to be converted
syntaxId - the syntax identifier
callback - the object used to notify the caller when the server response is received

parseAndRender

void parseAndRender(java.lang.String html,
                    java.lang.String syntax,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Makes a request to the server to parse the given HTML fragment and render the result in annotated XHTML syntax.

Parameters:
html - the HTML fragment to be parsed and rendered
syntax - the storage syntax
callback - the object used to notify the caller when the server response is received


Copyright © 2004-2011 XWiki. All Rights Reserved.