|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.LocaleSupport
public class LocaleSupport
All the strings that should be localized will go through this place. Multiple custom localizers can be registered.
Nested Class Summary | |
---|---|
static interface |
LocaleSupport.Localizer
Deprecated. Translates the keys to the localized strings. |
Constructor Summary | |
---|---|
LocaleSupport()
Deprecated. |
Method Summary | |
---|---|
static void |
addLocalizer(LocaleSupport.Localizer localizer)
Deprecated. Add a new localizer to the localizer array. |
static char |
getChar(String key,
char defaultValue)
Deprecated. Get the localized character or the default value if no translation for the given key exists. |
static String |
getString(String key)
Deprecated. Get the localized string for the given key using the registered localizers. |
static String |
getString(String key,
String defaultValue)
Deprecated. Get the localized string or the default value if no translation for the given key exists. |
static void |
removeLocalizer(LocaleSupport.Localizer localizer)
Deprecated. Remove the existing localizer from the localizer array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocaleSupport()
Method Detail |
---|
public static void addLocalizer(LocaleSupport.Localizer localizer)
localizer
- localizer to add to the localizer array.public static void removeLocalizer(LocaleSupport.Localizer localizer)
localizer
- localizer to remove.public static String getString(String key)
key
- key to translate to localized string.
public static String getString(String key, String defaultValue)
key
- key to translate to localized string.defaultValue
- default value to be returned in case no localized
string is found for the given key.public static char getChar(String key, char defaultValue)
key
- key to translate to localized character.defaultValue
- default value to be returned in case no localized
character is found for the given key.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |