org.xwiki.gwt.user.client.ui.rta.cmd.internal
Class AbstractRichTextAreaExecutable

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractRichTextAreaExecutable
All Implemented Interfaces:
Executable
Direct Known Subclasses:
AbstractSelectionExecutable, DefaultExecutable, EnableExecutable, ResetExecutable, StyleWithCssExecutable, SubmitExecutable

public abstract class AbstractRichTextAreaExecutable
extends Object
implements Executable

Abstract Executable whose execution target is a rich text area.


Field Summary
protected  RichTextArea rta
          The execution target.
 
Constructor Summary
AbstractRichTextAreaExecutable(RichTextArea rta)
          Creates a new executable to be executed on the specified rich text area.
 
Method Summary
 boolean isEnabled()
           
 boolean isSupported()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xwiki.gwt.user.client.ui.rta.cmd.Executable
execute, getParameter, isExecuted
 

Field Detail

rta

protected final RichTextArea rta
The execution target.

Constructor Detail

AbstractRichTextAreaExecutable

public AbstractRichTextAreaExecutable(RichTextArea rta)
Creates a new executable to be executed on the specified rich text area.

Parameters:
rta - the execution target
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Executable
Returns:
true if this executable can be executed on its underlying execution target, false otherwise
See Also:
CommandManager.isEnabled(Command)

isSupported

public boolean isSupported()
Specified by:
isSupported in interface Executable
Returns:
true if this executable is supported by its underlying execution target, false otherwise
See Also:
CommandManager.isSupported(Command)