| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.text.Format
|
+--com.togethersoft.openapi.util.ui.KeyStrokeFormat
This class is suited to format and parse Strings which represent KeyStrokes - a key being typed on the keyboard. It contains both a char code for the key and a modifier (alt, shift, ctrl, meta, or a combination). This class is a singleton.
| Method Summary | |
StringBuffer | format(Object obj, StringBuffer toAppendTo, FieldPosition pos)Formats Object to StringBuffer. |
StringBuffer | format(KeyStroke stroke, StringBuffer toAppendTo, FieldPosition pos)Formats Object to StringBuffer. |
static KeyStroke | fromString(String s)Formats String to KeyStroke. |
static KeyStrokeFormat | getInstance()Returns the only instance of this KeyStrokeFormat. |
Object | parseObject(String source, ParsePosition status)Parses a string to produce a KeyStroke. |
static String | toString(KeyStroke stroke)Formats KeyStroke to String. |
| Methods inherited from class java.text.Format |
format, parseObject, clone |
| Methods inherited from class java.lang.Object |
getClass, hashCode, equals, toString, notify, notifyAll, wait, wait, wait, finalize |
| Method Detail |
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
public StringBuffer format(KeyStroke stroke, StringBuffer toAppendTo, FieldPosition pos)
public static KeyStroke fromString(String s)
public static KeyStrokeFormat getInstance()
public Object parseObject(String source, ParsePosition status)
public static String toString(KeyStroke stroke)
| Association Links |
to Class java.lang.String
to Class java.lang.String
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||