Class KeyCombination

java.lang.Object
io.jmix.flowui.kit.component.KeyCombination

public class KeyCombination extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.vaadin.flow.component.Key
     
    protected static final String
     
    protected final com.vaadin.flow.component.KeyModifier[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    KeyCombination(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... keyModifiers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... keyModifiers)
     
    create(String keyString)
    Creates a new KeyCombination instance from a string representation.
    boolean
     
     
    com.vaadin.flow.component.Key
     
    com.vaadin.flow.component.KeyModifier[]
     
    int
     
    static com.vaadin.flow.component.Key
    valueOf(String keyString)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • KEY_FIELD_PREFIX

      protected static final String KEY_FIELD_PREFIX
      See Also:
    • key

      protected final com.vaadin.flow.component.Key key
    • keyModifiers

      protected final com.vaadin.flow.component.KeyModifier[] keyModifiers
  • Constructor Details

    • KeyCombination

      protected KeyCombination(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... keyModifiers)
  • Method Details

    • getKey

      public com.vaadin.flow.component.Key getKey()
    • getKeyModifiers

      @Nullable public com.vaadin.flow.component.KeyModifier[] getKeyModifiers()
    • create

      public static KeyCombination create(com.vaadin.flow.component.Key key, com.vaadin.flow.component.KeyModifier... keyModifiers)
    • create

      public static KeyCombination create(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
    • valueOf

      public static com.vaadin.flow.component.Key valueOf(String keyString)
    • format

      public String format()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object