|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.BaseConfig
com.gwtext.client.util.KeyMapConfig
public class KeyMapConfig
KeyMap configuration class.
Field Summary |
---|
Fields inherited from class com.gwtext.client.core.JsObject |
---|
jsObj |
Constructor Summary | |
---|---|
KeyMapConfig()
|
|
KeyMapConfig(int keyCode)
The keycode to handle. |
|
KeyMapConfig(int[] keyCodes)
An array of keycodes to handle. |
|
KeyMapConfig(java.lang.String keys)
A list of keys to handle. |
Method Summary | |
---|---|
void |
setAlt(boolean alt)
True to handle key only when alt is pressed (defaults to false). |
void |
setCtrl(boolean ctrl)
True to handle key only when ctrl is pressed (defaults to false). |
void |
setKey(int key)
The keycode to handle. |
void |
setKey(int[] keyCodes)
An array of keycodes to handle. |
void |
setKey(java.lang.String keys)
A list of keys to handle. |
void |
setKeyListener(KeyListener listener)
The listener to call when KeyMap finds the expected key combination. |
void |
setShift(boolean shift)
True to handle key only when shift is pressed (defaults to false) |
Methods inherited from class com.gwtext.client.core.JsObject |
---|
getJsObj, getProperties, isCreated, setJsObj |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyMapConfig()
public KeyMapConfig(int keyCode)
keyCode
- the keycodepublic KeyMapConfig(int[] keyCodes)
keyCodes
- keycodespublic KeyMapConfig(java.lang.String keys)
keys
- the keys to handlesMethod Detail |
---|
public void setKey(int key)
key
- the keycodepublic void setKey(java.lang.String keys)
keys
- the keys to handlespublic void setKey(int[] keyCodes)
keyCodes
- keycodespublic void setCtrl(boolean ctrl)
ctrl
- true to handle ctrlpublic void setAlt(boolean alt)
alt
- true to handle altpublic void setShift(boolean shift)
shift
- true to handle shiftpublic void setKeyListener(KeyListener listener)
listener
- the listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |