Enum Class KeyboardShortcutManager.Operation
java.lang.Object
java.lang.Enum<KeyboardShortcutManager.Operation>
com.atlassian.jira.plugin.keyboardshortcut.KeyboardShortcutManager.Operation
- All Implemented Interfaces:
Serializable,Comparable<KeyboardShortcutManager.Operation>,Constable
- Enclosing interface:
KeyboardShortcutManager
public static enum KeyboardShortcutManager.Operation
extends 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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClicks an element identified by a jQuery selectorEvaluates javascript on page load.Executes a javascript functions specified by the operation parameterSets the window.location to the href value of the link specified by the jQuery selector.Changes the window.location to go to a specified locationScrolls the window to an element and clicks that element using a jQuery selectorScrolls the window to a specific element and focuses that element using a jQuery selectorScrolls to and adds focused class to the next item in the jQuery collectionScrolls to and adds focused class to the previous item in the jQuery collection -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static KeyboardShortcutManager.Operation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
click
Clicks an element identified by a jQuery selector -
goTo
Changes the window.location to go to a specified location -
followLink
Sets the window.location to the href value of the link specified by the jQuery selector. -
moveToAndFocus
Scrolls the window to a specific element and focuses that element using a jQuery selector -
moveToAndClick
Scrolls the window to an element and clicks 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 -
execute
Executes a javascript functions specified by the operation parameter -
evaluate
Evaluates javascript on page load. Execute above will execute the javascript provided when the keyboard shortcut is pressed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-