com.xpn.xwiki.wysiwyg.client.ui.cmd.internal
Class DefaultExecutable

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractExecutable
      extended by com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.DefaultExecutable
All Implemented Interfaces:
Executable
Direct Known Subclasses:
BackColorExecutable, FormatBlockExecutable, HiliteColorExecutable, InsertHTMLExecutable, StyleExecutable

public class DefaultExecutable
extends AbstractExecutable


Field Summary
protected  java.lang.String command
           
 
Constructor Summary
DefaultExecutable(java.lang.String command)
           
 
Method Summary
 boolean execute(com.google.gwt.user.client.Element target, java.lang.String parameter)
          Executes the associated Command on the specified target with the given parameter.
 java.lang.String getParameter(com.google.gwt.user.client.Element target)
          
 boolean isEnabled(com.google.gwt.user.client.Element target)
          
 boolean isExecuted(com.google.gwt.user.client.Element target)
          
 boolean isSupported(com.google.gwt.user.client.Element target)
          
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractExecutable
execute, getParameter, isEnabled, isExecuted, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

protected java.lang.String command
Constructor Detail

DefaultExecutable

public DefaultExecutable(java.lang.String command)
Method Detail

execute

public boolean execute(com.google.gwt.user.client.Element target,
                       java.lang.String parameter)
Executes the associated Command on the specified target with the given parameter.

Parameters:
target - Execution target.
parameter - Execution parameter.
Returns:
true if execution succeeds.
See Also:
Executable.execute(Element, String)

getParameter

public java.lang.String getParameter(com.google.gwt.user.client.Element target)

Parameters:
target - Execution target.
Returns:
the previous execution parameter, if Executable.isExecuted(Element) returns true, null otherwise.
See Also:
Executable.getParameter(Element)

isEnabled

public boolean isEnabled(com.google.gwt.user.client.Element target)

Parameters:
target - Execution target.
Returns:
true if the associated Command can be executed on the current state of the given target.
See Also:
Executable.isEnabled(Element)

isExecuted

public boolean isExecuted(com.google.gwt.user.client.Element target)

Parameters:
target - Execution target.
Returns:
true if the associated Command has been executed on the current state of the given target.
See Also:
Executable.isExecuted(Element)

isSupported

public boolean isSupported(com.google.gwt.user.client.Element target)

Parameters:
target - Execution target.
Returns:
true if the associated Command is supported by the specified target.
See Also:
Executable.isSupported(Element)


Copyright © 2004-2008 XWiki. All Rights Reserved.