home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / awt / windows / WInputMethodDescriptor.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  45 lines

  1. package sun.awt.windows;
  2.  
  3. import java.awt.Image;
  4. import java.awt.Toolkit;
  5. import java.awt.im.spi.InputMethod;
  6. import java.awt.im.spi.InputMethodDescriptor;
  7. import java.util.Locale;
  8.  
  9. class WInputMethodDescriptor implements InputMethodDescriptor {
  10.    static Locale[] availableLocales;
  11.  
  12.    public Locale[] getAvailableLocales() {
  13.       if (availableLocales == null) {
  14.          availableLocales = this.getNativeAvailableLocales();
  15.       }
  16.  
  17.       Locale[] var1 = new Locale[availableLocales.length];
  18.       System.arraycopy(availableLocales, 0, var1, 0, availableLocales.length);
  19.       return var1;
  20.    }
  21.  
  22.    public boolean hasDynamicLocaleList() {
  23.       return false;
  24.    }
  25.  
  26.    public synchronized String getInputMethodDisplayName(Locale var1, Locale var2) {
  27.       String var3 = "System Input Methods";
  28.       if (Locale.getDefault().equals(var2)) {
  29.          var3 = Toolkit.getProperty("AWT.HostInputMethodDisplayName", var3);
  30.       }
  31.  
  32.       return var3;
  33.    }
  34.  
  35.    public Image getInputMethodIcon(Locale var1) {
  36.       return null;
  37.    }
  38.  
  39.    public InputMethod createInputMethod() throws Exception {
  40.       return new WInputMethod();
  41.    }
  42.  
  43.    private native Locale[] getNativeAvailableLocales();
  44. }
  45.