public class ShortcutKeyCommand extends Object implements com.google.gwt.user.client.Command
Command that can be triggered by a shortcut key.| Constructor and Description |
|---|
ShortcutKeyCommand(com.google.gwt.user.client.Command command)
Creates a new shortcut key command by wrapping the given command.
|
ShortcutKeyCommand(com.google.gwt.user.client.Command command,
boolean repeatable)
Creates a new shortcut key command by wrapping the given command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
com.google.gwt.user.client.Command |
getCommand() |
boolean |
isRepeatable() |
public ShortcutKeyCommand(com.google.gwt.user.client.Command command)
command - the command to be wrappedpublic ShortcutKeyCommand(com.google.gwt.user.client.Command command,
boolean repeatable)
command - the command to be wrappedrepeatable - true if the given command can be executed multiple times while the shortcut key is held
down, false otherwisepublic void execute()
execute in interface com.google.gwt.core.client.Scheduler.ScheduledCommandexecute in interface com.google.gwt.user.client.Commandpublic boolean isRepeatable()
true is this command can be executed while the shortcut key is held down, false otherwisepublic com.google.gwt.user.client.Command getCommand()
Copyright © 2004–2016 XWiki. All rights reserved.