org.xwiki.gwt.wysiwyg.client.plugin.macro.exec
Class RefreshExecutable

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
      extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
          extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.exec.RefreshExecutable
All Implemented Interfaces:
com.google.gwt.user.client.rpc.AsyncCallback<Object>, Executable

public class RefreshExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
implements com.google.gwt.user.client.rpc.AsyncCallback<Object>

Refreshes all the macros present on the edited document.

Version:
$Id$

Field Summary
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
cache, domUtils
 
Fields inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
rta
 
Constructor Summary
RefreshExecutable(RichTextArea rta, String url)
          Creates a new executable that can be used to refresh the specified rich text area.
 
Method Summary
 boolean execute(String param)
          
 void onFailure(Throwable caught)
           
 void onSuccess(Object result)
           
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
getParameter, hasValidSelection, isEnabled, isExecuted
 
Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefreshExecutable

public RefreshExecutable(RichTextArea rta,
                         String url)
Creates a new executable that can be used to refresh the specified rich text area. We use a Reloader to submit the content of the rich text area to the given URL and then use the response to reset the content of the rich text area.

Parameters:
rta - the execution target
url - the URL to take the content from
Method Detail

execute

public boolean execute(String param)

Specified by:
execute in interface Executable
See Also:
Executable.execute(String)

onFailure

public void onFailure(Throwable caught)
Specified by:
onFailure in interface com.google.gwt.user.client.rpc.AsyncCallback<Object>

onSuccess

public void onSuccess(Object result)
Specified by:
onSuccess in interface com.google.gwt.user.client.rpc.AsyncCallback<Object>


Copyright © 2004-2012 XWiki. All Rights Reserved.