public class GlobalShortcutEntry
extends java.lang.Object
Constructor and Description |
---|
GlobalShortcutEntry(java.lang.String action,
java.util.List<java.awt.AWTKeyStroke> shortcuts)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks if argument is an instance of this class with the same shortcut
and associated action.
|
java.lang.String |
getAction()
Returns action string.
|
boolean |
getEditShortcut1()
Get editable for primary shortcut.
|
boolean |
getEditShortcut2()
Get editable for secondary shortcut.
|
java.awt.AWTKeyStroke |
getShortcut()
Returns primary shortcut if it exists.
|
java.awt.AWTKeyStroke |
getShortcut2()
Returns second shortcut if it exists.
|
static java.lang.String |
getShortcutText(java.awt.AWTKeyStroke shortcut)
Set the shortcut keystroke and field.
|
int |
hashCode()
Returns hashcode for this instance.
|
boolean |
isDisabled()
If this global keybindings is disabled.
|
void |
setAction(java.lang.String action)
Set action string
|
void |
setEditShortcut1(boolean value)
Set editable for primary shortcut.
|
void |
setEditShortcut2(boolean value)
Set editable for secondary shortcut.
|
void |
setShortcuts(java.util.List<java.awt.AWTKeyStroke> shortcuts)
Set the shortcuts for this action.
|
java.lang.String |
toString()
Provides the string representation of this mapping.
|
public GlobalShortcutEntry(java.lang.String action, java.util.List<java.awt.AWTKeyStroke> shortcuts)
action
- actionshortcuts
- list of shortcut for this actionpublic java.awt.AWTKeyStroke getShortcut()
public java.awt.AWTKeyStroke getShortcut2()
public static java.lang.String getShortcutText(java.awt.AWTKeyStroke shortcut)
shortcut
- AWTKeyStrokepublic void setShortcuts(java.util.List<java.awt.AWTKeyStroke> shortcuts)
shortcuts
- list of shortcutspublic java.lang.String getAction()
public void setAction(java.lang.String action)
action
- actionpublic boolean isDisabled()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- element with which to be comparedpublic void setEditShortcut1(boolean value)
value
- value to setpublic void setEditShortcut2(boolean value)
value
- value to setpublic boolean getEditShortcut1()
public boolean getEditShortcut2()
public int hashCode()
hashCode
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.