public class Reloader extends Object implements com.google.gwt.http.client.RequestCallback, com.google.gwt.event.dom.client.LoadHandler
| Constructor and Description |
|---|
Reloader(RichTextArea rta)
Creates a new reloader for the specified rich text area.
|
Reloader(RichTextArea rta,
String url)
Creates a new reloader that makes requests to the specified URL and uses the response to reset the content of the
given rich text area.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(com.google.gwt.http.client.Request request,
Throwable exception) |
void |
onLoad(com.google.gwt.event.dom.client.LoadEvent event) |
void |
onResponseReceived(com.google.gwt.http.client.Request request,
com.google.gwt.http.client.Response response) |
void |
reload(Map<String,String> params,
com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
Reloads the underlying rich text area.
|
public Reloader(RichTextArea rta)
rta - the rich text that needs to be reloadedpublic Reloader(RichTextArea rta, String url)
rta - the rich text area that needs to be reloadedurl - the URL to get the content from; note that this URL must obey the same-origin policypublic void reload(Map<String,String> params, com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
params - optional reload parameterscallback - the object notified when the rich text area is reloadedpublic void onError(com.google.gwt.http.client.Request request,
Throwable exception)
onError in interface com.google.gwt.http.client.RequestCallbackpublic void onResponseReceived(com.google.gwt.http.client.Request request,
com.google.gwt.http.client.Response response)
onResponseReceived in interface com.google.gwt.http.client.RequestCallbackpublic void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
onLoad in interface com.google.gwt.event.dom.client.LoadHandlerCopyright © 2004–2016 XWiki. All rights reserved.