home *** CD-ROM | disk | FTP | other *** search
- package sun.awt.windows;
-
- import java.awt.Image;
- import java.awt.Toolkit;
- import java.awt.im.spi.InputMethod;
- import java.awt.im.spi.InputMethodDescriptor;
- import java.util.Locale;
-
- class WInputMethodDescriptor implements InputMethodDescriptor {
- static Locale[] availableLocales;
-
- public Locale[] getAvailableLocales() {
- if (availableLocales == null) {
- availableLocales = this.getNativeAvailableLocales();
- }
-
- Locale[] var1 = new Locale[availableLocales.length];
- System.arraycopy(availableLocales, 0, var1, 0, availableLocales.length);
- return var1;
- }
-
- public boolean hasDynamicLocaleList() {
- return false;
- }
-
- public synchronized String getInputMethodDisplayName(Locale var1, Locale var2) {
- String var3 = "System Input Methods";
- if (Locale.getDefault().equals(var2)) {
- var3 = Toolkit.getProperty("AWT.HostInputMethodDisplayName", var3);
- }
-
- return var3;
- }
-
- public Image getInputMethodIcon(Locale var1) {
- return null;
- }
-
- public InputMethod createInputMethod() throws Exception {
- return new WInputMethod();
- }
-
- private native Locale[] getNativeAvailableLocales();
- }
-