|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandManager
| Method Summary | |
|---|---|
boolean |
execute(Command cmd)
Executes a command on the current document, current selection, or the given range. |
boolean |
execute(Command cmd,
boolean param)
|
boolean |
execute(Command cmd,
int param)
|
boolean |
execute(Command cmd,
java.lang.String param)
Executes a command on the current document, current selection, or the given range. |
java.lang.Boolean |
getBooleanValue(Command cmd)
|
java.lang.Integer |
getIntegerValue(Command cmd)
|
java.lang.String |
getStringValue(Command cmd)
Returns the current value of the document, range, or current selection for the given command. |
boolean |
isEnabled(Command cmd)
Returns a boolean value that indicates whether a specified command can be successfully executed using execute(Command, String), given the current state of the document. |
boolean |
isExecuted(Command cmd)
Returns a boolean value that indicates the current state of the command. |
boolean |
isSupported(Command cmd)
Returns a boolean value that indicates whether the current command is supported on the current range. |
| Methods inherited from interface com.xpn.xwiki.wysiwyg.client.ui.cmd.SourcesCommandEvents |
|---|
addCommandListener, removeCommandListener |
| Method Detail |
|---|
boolean execute(Command cmd,
java.lang.String param)
cmd - The command to execute.param - Variant that specifies the string, number, or other value to assign. Possible values depend on the
command.
true if the command is successful.
boolean execute(Command cmd,
int param)
execute(Command, String)
boolean execute(Command cmd,
boolean param)
execute(Command, String)boolean execute(Command cmd)
cmd - The command to execute.
true if the command is successful.boolean isEnabled(Command cmd)
execute(Command, String), given the current state of the document.
cmd - The command to test.
true if the command is enabled.boolean isExecuted(Command cmd)
cmd - The command to test.
true if the given command has been executed on the object.boolean isSupported(Command cmd)
cmd - The command to test
true if the command is supported.java.lang.String getStringValue(Command cmd)
cmd - The command to query.
java.lang.Integer getIntegerValue(Command cmd)
getStringValue(Command)java.lang.Boolean getBooleanValue(Command cmd)
getStringValue(Command)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||