Package io.jmix.ui.component
Class KeyCombination
java.lang.Object
io.jmix.ui.component.KeyCombination
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
ConstructorDescriptionKeyCombination
(KeyCombination.Key key, KeyCombination.Modifier... modifiers) -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyCombination
Creates a newKeyCombination
instance from a string representation.boolean
format()
getKey()
static int[]
getShortcutModifiers
(KeyCombination.Modifier[] modifiers) int
hashCode()
toString()
-
Constructor Details
-
KeyCombination
public KeyCombination(@Nullable KeyCombination.Key key, @Nullable KeyCombination.Modifier... modifiers)
-
-
Method Details
-
create
Creates a newKeyCombination
instance from a string representation.- Parameters:
keyString
- string of type "Modifiers-Key", e.g. "Alt-N". Case-insensitive.- Returns:
- new instance
-
format
-
getKey
-
getModifiers
-
getShortcutModifiers
-
equals
-
hashCode
public int hashCode() -
toString
-