org.xwiki.gwt.user.client.ui.rta
Class Reloader

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.Reloader
All Implemented Interfaces:
com.google.gwt.event.dom.client.LoadHandler, com.google.gwt.event.shared.EventHandler, com.google.gwt.http.client.RequestCallback

public class Reloader
extends java.lang.Object
implements com.google.gwt.http.client.RequestCallback, com.google.gwt.event.dom.client.LoadHandler

Reloads a rich text area.

Version:
$Id: Reloader.java 26854 2010-02-10 08:53:24Z mflorea $

Constructor Summary
Reloader(RichTextArea rta)
          Creates a new reloader for the specified rich text area.
 
Method Summary
 void onError(com.google.gwt.http.client.Request request, java.lang.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(java.util.Map<java.lang.String,java.lang.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

Reloader

public Reloader(RichTextArea rta)
Creates a new reloader for the specified rich text area.

Parameters:
rta - the rich text that needs to be reloaded
Method Detail

reload

public void reload(java.util.Map<java.lang.String,java.lang.String> params,
                   com.google.gwt.user.client.rpc.AsyncCallback<?> callback)
Reloads the underlying rich text area.

Parameters:
params - optional reload parameters
callback - the object notified when the rich text area is reloaded

onError

public void onError(com.google.gwt.http.client.Request request,
                    java.lang.Throwable exception)

Specified by:
onError in interface com.google.gwt.http.client.RequestCallback
See Also:
RequestCallback.onError(Request, Throwable)

onResponseReceived

public void onResponseReceived(com.google.gwt.http.client.Request request,
                               com.google.gwt.http.client.Response response)

Specified by:
onResponseReceived in interface com.google.gwt.http.client.RequestCallback
See Also:
RequestCallback.onResponseReceived(Request, Response)

onLoad

public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)

Specified by:
onLoad in interface com.google.gwt.event.dom.client.LoadHandler
See Also:
LoadHandler.onLoad(LoadEvent)


Copyright © 2004-2010 XWiki. All Rights Reserved.