|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractCommandManager
com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.DefaultCommandManager
public class DefaultCommandManager
| Field Summary | |
|---|---|
static java.util.Map<Command,Executable> |
EXECUTABLES
|
| Fields inherited from class com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractCommandManager |
|---|
commandListeners |
| Constructor Summary | |
|---|---|
DefaultCommandManager(com.google.gwt.user.client.ui.FocusWidget widget)
|
|
DefaultCommandManager(com.google.gwt.user.client.ui.FocusWidget widget,
java.util.Map<Command,Executable> executables)
|
|
| Method Summary | |
|---|---|
boolean |
execute(Command cmd,
java.lang.String param)
Executes a command on the current document, current selection, or the given range. |
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 CommandManager.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. |
void |
onFocus(com.google.gwt.user.client.ui.Widget sender)
|
void |
onLostFocus(com.google.gwt.user.client.ui.Widget sender)
|
Executable |
registerCommand(Command command,
Executable executable)
|
Executable |
unregisterCommand(Command command)
|
| Methods inherited from class com.xpn.xwiki.wysiwyg.client.ui.cmd.internal.AbstractCommandManager |
|---|
addCommandListener, execute, execute, execute, getBooleanValue, getIntegerValue, removeCommandListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Map<Command,Executable> EXECUTABLES
| Constructor Detail |
|---|
public DefaultCommandManager(com.google.gwt.user.client.ui.FocusWidget widget)
public DefaultCommandManager(com.google.gwt.user.client.ui.FocusWidget widget,
java.util.Map<Command,Executable> executables)
| Method Detail |
|---|
public boolean execute(Command cmd,
java.lang.String param)
execute in interface CommandManagercmd - 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.CommandManager.execute(Command, String)public boolean isEnabled(Command cmd)
CommandManager.execute(Command, String), given the current state of the document.
isEnabled in interface CommandManagercmd - The command to test.
true if the command is enabled.CommandManager.isEnabled(Command)public boolean isExecuted(Command cmd)
isExecuted in interface CommandManagercmd - The command to test.
true if the given command has been executed on the object.CommandManager.isExecuted(Command)public boolean isSupported(Command cmd)
isSupported in interface CommandManagercmd - The command to test
true if the command is supported.CommandManager.isSupported(Command)public java.lang.String getStringValue(Command cmd)
getStringValue in interface CommandManagercmd - The command to query.
CommandManager.getStringValue(Command)
public Executable registerCommand(Command command,
Executable executable)
public Executable unregisterCommand(Command command)
public void onFocus(com.google.gwt.user.client.ui.Widget sender)
onFocus in interface com.google.gwt.user.client.ui.FocusListenerFocusListener.onFocus(Widget)public void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
onLostFocus in interface com.google.gwt.user.client.ui.FocusListenerFocusListener.onLostFocus(Widget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||