KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > keyboard > ThaiKeyboard


1 package SnowMailClient.keyboard;
2
3 public class ThaiKeyboard extends KeyboardMap
4 {
5
6   public ThaiKeyboard()
7   {
8     super("Thai keys", 10);
9
10     this.keys.add(new KeyboardKey( "KO KAI", 0x0e01, "KAI" ));
11     this.keys.add(new KeyboardKey( "KHO KHAI", 0x0e02, "KHAI" ));
12     this.keys.add(new KeyboardKey( "KHO KHUAT", 0x0e03, "KHUAT" ));
13     this.keys.add(new KeyboardKey( "KHO KHWAI", 0x0e04, "KHWAI" ));
14     this.keys.add(new KeyboardKey( "KHO KHON", 0x0e05, "KHON" ));
15     this.keys.add(new KeyboardKey( "KHO RAKHANG", 0x0e06, "RAKHANG" ));
16     this.keys.add(new KeyboardKey( "NGO NGU", 0x0e07, "NGU" ));
17     this.keys.add(new KeyboardKey( "CHO CHAN", 0x0e08, "CHO CHAN" ));
18     this.keys.add(new KeyboardKey( "CHO CHING", 0x0e09, "CHING" ));
19     this.keys.add(new KeyboardKey( "CHO CHANG", 0x0e0a, "CHANG" ));
20
21     this.keys.add(new KeyboardKey( "SO SO", 0x0e0b, "SOSO" ));
22     this.keys.add(new KeyboardKey( "CHO CHOE", 0x0e0c, "CHOCHOE" ));
23     this.keys.add(new KeyboardKey( "YO YING", 0x0e0d, "YOYING" ));
24     this.keys.add(new KeyboardKey( "DO CHADA", 0x0e0e, "DOCHADA" ));
25     this.keys.add(new KeyboardKey( "TO PATAK", 0x0e0f, "TOPATAK" ));
26     this.keys.add(new KeyboardKey( "THO THAN", 0x0e10, "THOTHAN" ));
27     this.keys.add(new KeyboardKey( "THO NANGMONTHO", 0x0e11, "THONANGMONTHO" ));
28     this.keys.add(new KeyboardKey( "THO PHUTHAO", 0x0e12, "THOPHUTHAO" ));
29     this.keys.add(new KeyboardKey( "NO NEN", 0x0e13, "NONEN" ));
30     this.keys.add(new KeyboardKey( "DO DEK", 0x0e14, "DODEK" ));
31
32     this.keys.add(new KeyboardKey( "TO TAO", 0x0e15, "TOTAO" ));
33     this.keys.add(new KeyboardKey( "THO THUNG", 0x0e16, "THOTHUNG" ));
34     this.keys.add(new KeyboardKey( "TTHO THAHAN", 0x0e17, "THOTHAHAN" ));
35     this.keys.add(new KeyboardKey( "THO THONG", 0x0e18, "THOTHONG" ));
36     this.keys.add(new KeyboardKey( "NO NU", 0x0e19, "NONU" ));
37
38     this.keys.add(new KeyboardKey( "BO BAIMAI", 0x0e1a, "BOBAIMAI" ));
39     this.keys.add(new KeyboardKey( "PO PLA", 0x0e1b, "POPLA" ));
40     this.keys.add(new KeyboardKey( "PHO PHUNG", 0x0e1c, "PHOPHUNG" ));
41     this.keys.add(new KeyboardKey( "FO FA", 0x0e1d, "FOFA" ));
42     this.keys.add(new KeyboardKey( "PHO PHAN", 0x0e1e, "PHOPHAN" ));
43
44     this.keys.add(new KeyboardKey( "FO FAN", 0x0e1f, "FOFAN" ));
45     this.keys.add(new KeyboardKey( "PHO SAMPHAO", 0x0e20, "PHOSAMPHAO" ));
46     this.keys.add(new KeyboardKey( "MO MA", 0x0e21, "MOMA" ));
47     this.keys.add(new KeyboardKey( "YO YAK", 0x0e22, "YOYAK" ));
48     this.keys.add(new KeyboardKey( "RO RUA", 0x0e23, "RORUA" ));
49
50     this.keys.add(new KeyboardKey( "FO FAN", 0x0e1f, "FOFAN" ));
51     this.keys.add(new KeyboardKey( "PHO SAMPHAO", 0x0e20, "PHOSAMPHAO" ));
52     this.keys.add(new KeyboardKey( "MO MA", 0x0e21, "MOMA" ));
53     this.keys.add(new KeyboardKey( "YO YAK", 0x0e22, "YOYAK" ));
54     this.keys.add(new KeyboardKey( "RO RUA", 0x0e23, "RORUA" ));
55     this.keys.add(new KeyboardKey( "RU", 0x0e24, "RU" ));
56     this.keys.add(new KeyboardKey( "LO LING", 0x0e25, "LOLING" ));
57     this.keys.add(new KeyboardKey( "LU", 0x0e26, "LU" ));
58     this.keys.add(new KeyboardKey( "WO WAEN", 0x0e27, "WOWAEN" ));
59     this.keys.add(new KeyboardKey( "SO SALA", 0x0e28, "SOSALA" ));
60     this.keys.add(new KeyboardKey( "SO RUSI", 0x0e29, "SORUSI" ));
61     this.keys.add(new KeyboardKey( "SO SUA", 0x0e2a, "SOSUA" ));
62     this.keys.add(new KeyboardKey( "HO HIP", 0x0e2b, "HOHIP" ));
63     this.keys.add(new KeyboardKey( "LO CHULA", 0x0e2c, "LOCHULA" ));
64     this.keys.add(new KeyboardKey( "O ANG", 0x0e2d, "OANG" ));
65
66     this.keys.add(new KeyboardKey( "HO NOKHUK", 0x0e2e, "HO NOKHUK" ));
67     this.keys.add(new KeyboardKey( "PAIYANNOI", 0x0e2f, "PAIYANNOI" ));
68     this.keys.add(new KeyboardKey( "SARA A", 0x0e30, "SARAA" ));
69     this.keys.add(new KeyboardKey( "MAI HAN-AKAT", 0x0e31, "MAIHAN-" ));
70     this.keys.add(new KeyboardKey( "SARA AA", 0x0e32, "SARAAA" ));
71
72     this.keys.add(new KeyboardKey( "SARA AM", 0x0e33, "SARAAM" ));
73     this.keys.add(new KeyboardKey( "SARA I", 0x0e34, "SARAI" ));
74     this.keys.add(new KeyboardKey( "SARA II", 0x0e35, "SARAII" ));
75     this.keys.add(new KeyboardKey( "SARA UE", 0x0e36, "SARAUE" ));
76     this.keys.add(new KeyboardKey( "SARA UEE", 0x0e37, "SARAUEE" ));
77
78     this.keys.add(new KeyboardKey( "SARA U", 0x0e38, "SARAU" ));
79     this.keys.add(new KeyboardKey( "SARA UU", 0x0e39, "SARAUU" ));
80     this.keys.add(new KeyboardKey( "PHINTHU", 0x0e3a, "PHINTHU" ));
81     this.keys.add(new KeyboardKey( "CURRENCY SYMBOL BAHT", 0x0e3f, "$b" ));
82     this.keys.add(new KeyboardKey( "SARA E", 0x0e40, "SARAE" ));
83
84     this.keys.add(new KeyboardKey( "SARA AE", 0x0e41, "SARAAE" ));
85     this.keys.add(new KeyboardKey( "SARA O", 0x0e42, "SARAO" ));
86     this.keys.add(new KeyboardKey( "SARA AI MAIMUAN", 0x0e43, "SARAAI-" ));
87     this.keys.add(new KeyboardKey( "SARA AI MAIMALAI", 0x0e44, "SARAAIm" ));
88     this.keys.add(new KeyboardKey( "LAKKHANGYAO", 0x0e45, "LAKKHANGYAO" ));
89
90     this.keys.add(new KeyboardKey( "MAIYAMOK", 0x0e46, "MAIYAMOK" ));
91     this.keys.add(new KeyboardKey( "MAITAIKHU", 0x0e47, "MAITAIKHU" ));
92     this.keys.add(new KeyboardKey( "MAI EK", 0x0e48, "MAIEK" ));
93     this.keys.add(new KeyboardKey( "MAI THO", 0x0e49, "MAITHO" ));
94     this.keys.add(new KeyboardKey( "MAI TRI", 0x0e4a, "MAITRI" ));
95
96     this.keys.add(new KeyboardKey( "MAI CHATTAWA", 0x0e4b, "MAI CHATTAWA" ));
97     this.keys.add(new KeyboardKey( "THANTHAKHAT", 0x0e4c, "THANTHAKHAT" ));
98     this.keys.add(new KeyboardKey( "NIKHAHIT", 0x0e4d, "NIKHAHIT" ));
99     this.keys.add(new KeyboardKey( "YAMAKKAN", 0x0e4e, "YAMAKKAN" ));
100     this.keys.add(new KeyboardKey( "FONGMAN", 0x0e4f, "FONGMAN" ));
101
102     this.keys.add(new KeyboardKey( "ANGKHANKHU", 0x0e5a, "ANGKHANKHU" ));
103     this.keys.add(new KeyboardKey( "KHOMUT", 0x0e4b, "KHOMUT" ));
104
105     this.keys.add(new KeyboardKey());
106     this.keys.add(new KeyboardKey( "0", 0x0e50, "0t" ));
107     this.keys.add(new KeyboardKey( "1", 0x0e51, "1t" ));
108     this.keys.add(new KeyboardKey( "2", 0x0e52, "2t" ));
109     this.keys.add(new KeyboardKey( "3", 0x0e53, "3t" ));
110     this.keys.add(new KeyboardKey( "4", 0x0e54, "4t" ));
111     this.keys.add(new KeyboardKey( "5", 0x0e55, "5t" ));
112     this.keys.add(new KeyboardKey( "6", 0x0e56, "6t" ));
113     this.keys.add(new KeyboardKey( "7", 0x0e57, "7t" ));
114     this.keys.add(new KeyboardKey( "8", 0x0e58, "8t" ));
115     this.keys.add(new KeyboardKey( "9", 0x0e59, "9t" ));
116
117
118   }
119
120   public String JavaDoc getCharset() { return "iso-8859-1"; }
121
122   public static void main(String JavaDoc[] a)
123   {
124      KeyboardDialog.main(a);
125   }
126
127 } // Keyboard
Popular Tags