Class KeyIdentifier

All Implemented Interfaces:
HasHandlers

public class KeyIdentifier extends DataClass
Identifier for a key pressed by the user, optionally specifying whether the Shift, Control, and/or Alt keys should be held or not held when the key is pressed, used by various methods.
  • Constructor Details

    • KeyIdentifier

      public KeyIdentifier()
    • KeyIdentifier

      public KeyIdentifier(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static KeyIdentifier getOrCreateRef(JavaScriptObject jsObj)
    • setAltKey

      public KeyIdentifier setAltKey(Boolean altKey)
      If set, whether the Alt key must be held down.
      Parameters:
      altKey - New altKey value. Default value is null
      Returns:
      KeyIdentifier instance, for chaining setter calls
      See Also:
    • getAltKey

      public Boolean getAltKey()
      If set, whether the Alt key must be held down.
      Returns:
      Current altKey value. Default value is null
      See Also:
    • setCtrlKey

      public KeyIdentifier setCtrlKey(Boolean ctrlKey)
      If set, whether the Control key must be held down.
      Parameters:
      ctrlKey - New ctrlKey value. Default value is null
      Returns:
      KeyIdentifier instance, for chaining setter calls
      See Also:
    • getCtrlKey

      public Boolean getCtrlKey()
      If set, whether the Control key must be held down.
      Returns:
      Current ctrlKey value. Default value is null
      See Also:
    • setKeyName

      public KeyIdentifier setKeyName(String keyName)
      Name of the key.
      Parameters:
      keyName - New keyName value. Default value is null
      Returns:
      KeyIdentifier instance, for chaining setter calls
      See Also:
    • getKeyName

      public String getKeyName()
      Name of the key.
      Returns:
      Current keyName value. Default value is null
      See Also:
    • setShiftKey

      public KeyIdentifier setShiftKey(Boolean shiftKey)
      If set, whether the Shift key must be held down.
      Parameters:
      shiftKey - New shiftKey value. Default value is null
      Returns:
      KeyIdentifier instance, for chaining setter calls
      See Also:
    • getShiftKey

      public Boolean getShiftKey()
      If set, whether the Shift key must be held down.
      Returns:
      Current shiftKey value. Default value is null
      See Also: