Class KeyCombination

java.lang.Object
io.jmix.ui.component.KeyCombination

public class KeyCombination extends Object
  • Constructor Details

  • Method Details

    • create

      @Nullable public static KeyCombination create(@Nullable String keyString)
      Creates a new KeyCombination instance from a string representation.
      Parameters:
      keyString - string of type "Modifiers-Key", e.g. "Alt-N". Case-insensitive.
      Returns:
      new instance
    • format

      public String format()
    • getKey

      @Nullable public KeyCombination.Key getKey()
    • getModifiers

      @Nullable public KeyCombination.Modifier[] getModifiers()
    • getShortcutModifiers

      @Nullable public static int[] getShortcutModifiers(@Nullable KeyCombination.Modifier[] modifiers)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object