org.xwiki.gwt.wysiwyg.client.plugin.macro.exec
Class RefreshExecutable
java.lang.Object
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable
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: 9fc51a86dace1565cd40bcda1365d78b4a6f7ce5 $
| Methods inherited from class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable |
getParameter, hasValidSelection, isEnabled, isExecuted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 targeturl - the URL to take the content from
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–2014 XWiki. All rights reserved.