Methods Summary |
---|
public java.awt.im.spi.InputMethod | createInputMethod()
return new CityInputMethod();
|
public java.util.Locale[] | getAvailableLocales()
Locale[] locales = {Locale.ENGLISH,
Locale.GERMAN,
Locale.JAPANESE,
YOMI,
Locale.SIMPLIFIED_CHINESE,
Locale.TRADITIONAL_CHINESE};
return locales;
|
public synchronized java.lang.String | getInputMethodDisplayName(java.util.Locale inputLocale, java.util.Locale displayLanguage)
String localeName = null;
if (inputLocale == Locale.ENGLISH) {
localeName = "English";
} else if (inputLocale == Locale.GERMAN) {
localeName = "German";
} else if (inputLocale == Locale.JAPANESE) {
localeName = "Japanese";
} else if (inputLocale == YOMI) {
localeName = "Japanese Reading";
} else if (inputLocale == Locale.SIMPLIFIED_CHINESE) {
localeName = "Simplified Chinese";
} else if (inputLocale == Locale.TRADITIONAL_CHINESE) {
localeName = "Traditional Chinese";
}
if (localeName != null) {
return "City Input Method - " + localeName;
} else {
return "City Input Method";
}
|
public java.awt.Image | getInputMethodIcon(java.util.Locale inputLocale)
return null;
|
public boolean | hasDynamicLocaleList()
return false;
|
public java.lang.String | toString()
Locale loc[] = getAvailableLocales();
String locnames = null;
for (int i = 0; i < loc.length; i++) {
if (locnames == null) {
locnames = loc[i].toString();
} else {
locnames += "," + loc[i];
}
}
return getClass().getName() + "[" +
"locales=" + locnames +
",localelist=" + (hasDynamicLocaleList() ? "dynamic" : "static") +
"]";
|