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:
Executable

public class RefreshExecutable
extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractSelectionExecutable

Refreshes all the macros present on the edited document.

Version:
$Id: RefreshExecutable.java 31679 2010-10-08 15:53:52Z mflorea $

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, java.lang.String url)
          Creates a new executable that can be used to refresh the specified rich text area.
 
Method Summary
 boolean execute(java.lang.String param)
          
 
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,
                         java.lang.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(java.lang.String param)

See Also:
Executable.execute(String)


Copyright © 2004-2010 XWiki. All Rights Reserved.