|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taco.text.AbstractStringToObjectConverter
com.taco.swinger.text2gui.StringToKeyCodeConverter
public final class StringToKeyCodeConverter
A converter from strings to key codes.
Field Summary | |
---|---|
static StringToKeyCodeConverter |
instance
The singleton instance of this class. |
Method Summary | |
---|---|
static int |
toKeyCode(java.lang.String s)
Look for a field in KeyEvent named "VK_" +
s.toUpperCase() . |
java.lang.Object |
toObject(java.lang.String s)
Return an Integer wrapping the key code returned by
toKeyCode(s) . |
Methods inherited from class com.taco.text.AbstractStringToObjectConverter |
---|
map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringToKeyCodeConverter instance
Method Detail |
---|
public java.lang.Object toObject(java.lang.String s) throws java.text.ParseException
Integer
wrapping the key code returned by
toKeyCode(s)
.
java.text.ParseException
public static final int toKeyCode(java.lang.String s) throws java.text.ParseException
KeyEvent
named "VK_" +
s.toUpperCase()
. If no such field exists, throw a
ParseException
.
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |