jgb.builder.utils
Class KeyStrokeParser
java.lang.Object
|
+--jgb.builder.utils.KeyStrokeParser
- public class KeyStrokeParser
- extends Object
Implements a parser for returning KeyStroke
from a string representation of the key stroke.
Java already provides such a facility but, unfortunately, the parsing
uses non-standard names for meta key names.
This class provides a parser that combines both parsers into one:
the passed key stroke string can be either in Java's parser format, or the
more standard "Ctrl+C" format.
- Author:
- Francois Beausoleil, fbos@users.sourceforge.net
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStrokeParser
public KeyStrokeParser()
getKeyStroke
public static KeyStroke getKeyStroke(String keyStrokeString)
- Returns
null
if the key stroke string could not be parsed.
Copyright 2002-2003, François Beausoleil, All Rights Reserved