org.xwiki.gwt.user.client.ui.rta.cmd
Interface Executable


public interface Executable

The code associated with a Command.

Version:
$Id: 45b193d720a3043a9a93390c00bd163164eea755 $

Method Summary
 boolean execute(String param)
          Runs this executable with the given parameter.
 String getParameter()
           
 boolean isEnabled()
           
 boolean isExecuted()
           
 boolean isSupported()
           
 

Method Detail

execute

boolean execute(String param)
Runs this executable with the given parameter.

Parameters:
param - the execution parameter
Returns:
true if the execution succeeds, false otherwise
See Also:
CommandManager.execute(Command, String)

isSupported

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

isEnabled

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

isExecuted

boolean isExecuted()
Returns:
true if this executable has been executed on its underlying execution target, false otherwise area.
See Also:
CommandManager.isExecuted(Command)

getParameter

String getParameter()
Returns:
the previous execution parameter, if isExecuted() returns true, null otherwise


Copyright © 2004–2014 XWiki. All rights reserved.