com.smartgwt.client.core

## Class KeyIdentifier

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.core.KeyIdentifier

- All Implemented Interfaces:
    com.google.gwt.event.shared.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.

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.DataClass

      `factoryCreated, factoryProperties`

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyIdentifier()`
    `KeyIdentifier(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Boolean` | `getAltKey()` If set, whether the Alt key must be held down.
    `java.lang.Boolean` | `getCtrlKey()` If set, whether the Control key must be held down.
    `java.lang.String` | `getKeyName()` Name of the key.
    `static KeyIdentifier` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `java.lang.Boolean` | `getShiftKey()` If set, whether the Shift key must be held down.
    `KeyIdentifier` | `setAltKey(java.lang.Boolean altKey)` If set, whether the Alt key must be held down.
    `KeyIdentifier` | `setCtrlKey(java.lang.Boolean ctrlKey)` If set, whether the Control key must be held down.
    `KeyIdentifier` | `setKeyName(java.lang.String keyName)` Name of the key.
    `KeyIdentifier` | `setShiftKey(java.lang.Boolean shiftKey)` If set, whether the Shift key must be held down.

    - ### Methods inherited from class com.smartgwt.client.core.DataClass

      `applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyIdentifier

          public KeyIdentifier()

    - #### KeyIdentifier

          public KeyIdentifier(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static KeyIdentifier getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setAltKey

          public KeyIdentifier setAltKey(java.lang.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:
        `EventHandler.altKeyDown()`

    - #### getAltKey

          public java.lang.Boolean getAltKey()

      If set, whether the Alt key must be held down.
      Returns:
        Current altKey value. Default value is null
      See Also:
        `EventHandler.altKeyDown()`

    - #### setCtrlKey

          public KeyIdentifier setCtrlKey(java.lang.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:
        `EventHandler.ctrlKeyDown()`

    - #### getCtrlKey

          public java.lang.Boolean getCtrlKey()

      If set, whether the Control key must be held down.
      Returns:
        Current ctrlKey value. Default value is null
      See Also:
        `EventHandler.ctrlKeyDown()`

    - #### setKeyName

          public KeyIdentifier setKeyName(java.lang.String keyName)

      Name of the key.
      Parameters:
        `keyName` - New keyName value. Default value is null
      Returns:
        `KeyIdentifier` instance, for chaining setter calls
      See Also:
        `KeyName`

    - #### getKeyName

          public java.lang.String getKeyName()

      Name of the key.
      Returns:
        Current keyName value. Default value is null
      See Also:
        `KeyName`

    - #### setShiftKey

          public KeyIdentifier setShiftKey(java.lang.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:
        `EventHandler.shiftKeyDown()`

    - #### getShiftKey

          public java.lang.Boolean getShiftKey()

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