|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.control.KeyInputHelper
KeyInputHelper
Encapsulates the logic to add keyboardActions to a JPanel
GtAction| Method Summary | |
static void |
addAction(javax.swing.JPanel jPanel,
java.lang.String action,
int keyCode)
Adds the keyCode as action (pressed and released) to the passed jPanel. |
static void |
addAction(javax.swing.JPanel jPanel,
java.lang.String action,
int keyCode,
boolean includeKeyMasks)
Adds the keyCode as action (pressed and released) to the passed jPanel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void addAction(javax.swing.JPanel jPanel,
java.lang.String action,
int keyCode)
jPanel - where the action has to be addedaction - the base action typekeyCode - the keyCode for the action
public static void addAction(javax.swing.JPanel jPanel,
java.lang.String action,
int keyCode,
boolean includeKeyMasks)
jPanel - where the action has to be addedaction - the base action typekeyCode - the keyCode for the actionincludeKeyMasks - flag to enable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||