org.xwiki.gwt.wysiwyg.client.plugin.submit.exec
Class ResetExecutable
java.lang.Object
org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
org.xwiki.gwt.wysiwyg.client.plugin.submit.exec.ResetExecutable
- All Implemented Interfaces:
- Executable
public class ResetExecutable
- extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
Resets the content of the rich text area. This executable should be used, instead of setting the content of the rich
text area directly, in order to let command listeners to be notified and adjust the content. There is a difference
between listening to the command associated with this executable and listening to inner HTML changes on the rich text
area's document body. The later implies that the new content was generated on the client (like an undo operation),
while the reset executable implies the new content comes from the server and is more like the initial content of the
rich text area.
- Version:
- $Id: ResetExecutable.java 26786 2010-02-07 16:46:17Z mflorea $
|
Constructor Summary |
ResetExecutable(RichTextArea rta)
Creates a new executable that can reset the HTML of the specified rich text area. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResetExecutable
public ResetExecutable(RichTextArea rta)
- Creates a new executable that can reset the HTML of the specified rich text area.
- Parameters:
rta - the execution target
execute
public boolean execute(java.lang.String parameter)
-
- See Also:
Executable.execute(String)
getParameter
public java.lang.String getParameter()
-
- See Also:
Executable.getParameter()
isEnabled
public boolean isEnabled()
-
- Specified by:
isEnabled in interface Executable- Overrides:
isEnabled in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
- See Also:
AbstractRichTextAreaExecutable.isEnabled()
isExecuted
public boolean isExecuted()
-
- See Also:
Executable.isExecuted()
isSupported
public boolean isSupported()
-
- Specified by:
isSupported in interface Executable- Overrides:
isSupported in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
- See Also:
AbstractRichTextAreaExecutable.isSupported()
Copyright © 2004-2011 XWiki. All Rights Reserved.