Package 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:
HasHandlers
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf set, whether the Alt key must be held down.If set, whether the Control key must be held down.Name of the key.static KeyIdentifier
getOrCreateRef
(JavaScriptObject jsObj) If set, whether the Shift key must be held down.If set, whether the Alt key must be held down.setCtrlKey
(Boolean ctrlKey) If set, whether the Control key must be held down.setKeyName
(String keyName) Name of the key.setShiftKey
(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, getAttributeAsElement, 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
-
Constructor Details
-
KeyIdentifier
public KeyIdentifier() -
KeyIdentifier
-
-
Method Details
-
getOrCreateRef
-
setAltKey
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
If set, whether the Alt key must be held down.- Returns:
- Current altKey value. Default value is null
- See Also:
-
setCtrlKey
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
If set, whether the Control key must be held down.- Returns:
- Current ctrlKey value. Default value is null
- See Also:
-
setKeyName
Name of the key.- Parameters:
keyName
- New keyName value. Default value is null- Returns:
KeyIdentifier
instance, for chaining setter calls- See Also:
-
getKeyName
Name of the key.- Returns:
- Current keyName value. Default value is null
- See Also:
-
setShiftKey
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
If set, whether the Shift key must be held down.- Returns:
- Current shiftKey value. Default value is null
- See Also:
-