|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KeyboardShortcutManager.Operation>
com.atlassian.jira.plugin.keyboardshortcut.KeyboardShortcutManager.Operation
public static enum KeyboardShortcutManager.Operation
Defines the different operations that can be taken using a KeyboardShortcut
.
Operations are always coupled with a parameter which will generally be a jQuery selector or URL. The parameter
can however also be more generic when coupled with the 'execute' operation where a generic javascript function
can be specified as well.
Enum Constant Summary | |
---|---|
click
Clicks an element identified by a jQuery selector |
|
evaluate
Evaluates javascript on page load. |
|
execute
Executes a javascript functions specified by the operation parameter |
|
followLink
Sets the window.location to the href value of the link specified by the jQuery selector. |
|
goTo
Changes the window.location to go to a specified location |
|
moveToAndClick
Scrolls the window to an element and clicks that elment using a jQuery selector |
|
moveToAndFocus
Scrolls the window to a specific element and focuses that element using a jQuery selector |
|
moveToNextItem
Scrolls to and adds focused class to the next item in the jQuery collection |
|
moveToPrevItem
Scrolls to and adds focused class to the previous item in the jQuery collection |
Method Summary | |
---|---|
static KeyboardShortcutManager.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static KeyboardShortcutManager.Operation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final KeyboardShortcutManager.Operation click
public static final KeyboardShortcutManager.Operation goTo
public static final KeyboardShortcutManager.Operation followLink
public static final KeyboardShortcutManager.Operation moveToAndFocus
public static final KeyboardShortcutManager.Operation moveToAndClick
public static final KeyboardShortcutManager.Operation moveToNextItem
public static final KeyboardShortcutManager.Operation moveToPrevItem
public static final KeyboardShortcutManager.Operation execute
public static final KeyboardShortcutManager.Operation evaluate
Method Detail |
---|
public static KeyboardShortcutManager.Operation[] values()
for (KeyboardShortcutManager.Operation c : KeyboardShortcutManager.Operation.values()) System.out.println(c);
public static KeyboardShortcutManager.Operation valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |