|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.input.localization.KeyboardLocalizer
public class KeyboardLocalizer
This class can be used to map key-assotiated characters
to their counterparts for the key with a modifier held.
This class must be initialized before any access to the
Key or Keys class.
This class is consulted at creation time of a Key with
a key char assotiated. Specifically this means, that the Key's
Key.hasKeyChar() method returns true.
| Constructor Summary | |
|---|---|
KeyboardLocalizer()
|
|
| Method Summary | |
|---|---|
static Mapping |
autoselectMapping()
Looks up the current mappings-map for the current system's locale. |
static java.lang.String |
getCurrentMappingName()
|
static Mapping |
getMapping()
Selects a Mapping, if none is currently selected. |
static void |
registerMapping(java.util.Locale locale,
Mapping mapping)
Registers a new Locale->Mapping mapping, that is considered by the autoselectMapping() method. |
static void |
setMapping(Mapping mapping)
Sets the new mapping for your localization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyboardLocalizer()
| Method Detail |
|---|
public static void registerMapping(java.util.Locale locale,
Mapping mapping)
autoselectMapping() method.
locale - mapping - public static final Mapping autoselectMapping()
setMapping(Mapping) to force a Mapping to be used.
Mappingpublic static void setMapping(Mapping mapping)
mapping - public static final Mapping getMapping()
null).public static final java.lang.String getCurrentMappingName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||