|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.ui.rta.Reloader
public class Reloader
Reloads a rich text area.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Reloader(RichTextArea rta)
rta - the rich text that needs to be reloaded
public 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 policy| Method Detail |
|---|
public 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 reloaded
public void onError(com.google.gwt.http.client.Request request,
Throwable exception)
onError in interface com.google.gwt.http.client.RequestCallback
public 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.LoadHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||