com.xpn.xwiki.wysiwyg.client.ui.cmd
Interface Executable
- All Known Implementing Classes:
- AbstractExecutable, BackColorExecutable, BoldExecutable, DefaultExecutable, FormatBlockExecutable, HiliteColorExecutable, IEFormatBlockExecutable, InsertHTMLExecutable, RedoExecutable, StyleExecutable, StyleWithCssExecutable, UndoExecutable
public interface Executable
The code associated with a Command.
|
Method Summary |
boolean |
execute(com.google.gwt.user.client.Element target,
java.lang.String param)
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)
|
execute
boolean execute(com.google.gwt.user.client.Element target,
java.lang.String param)
- Executes the associated
Command on the specified target with the given parameter.
- Parameters:
target - Execution target.param - Execution parameter.
- Returns:
- true if execution succeeds.
- See Also:
CommandManager.execute(Command, String)
isSupported
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:
CommandManager.isSupported(Command)
isEnabled
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:
CommandManager.isEnabled(Command)
isExecuted
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:
CommandManager.isExecuted(Command)
getParameter
java.lang.String getParameter(com.google.gwt.user.client.Element target)
- Parameters:
target - Execution target.
- Returns:
- the previous execution parameter, if
isExecuted(Element) returns true, null otherwise.
Copyright © 2004-2008 XWiki. All Rights Reserved.