29 { |
29 { |
30 |
30 |
31 if(key == null) throw new IllegalArgumentException( |
31 if(key == null) throw new IllegalArgumentException( |
32 MsgRepository.TEXT_EXCEPTION_TXT_IS_NULL); |
32 MsgRepository.TEXT_EXCEPTION_TXT_IS_NULL); |
33 |
33 |
34 if(key.equals("key_up")) |
34 // arrow up key name |
35 { |
35 if(key.equals("canvas_key_up")) |
36 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
36 { |
37 return iRes.format(key).toString(); |
37 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
38 } |
38 return iRes.format(key).toString(); |
39 |
39 } |
40 if(key.equals("key_down")) |
40 |
41 { |
41 // arrow down key name |
42 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
42 if(key.equals("canvas_key_down")) |
43 return iRes.format(key).toString(); |
43 { |
44 } |
44 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
45 |
45 return iRes.format(key).toString(); |
46 if(key.equals("key_left")) |
46 } |
47 { |
47 |
48 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
48 // arrow left key name |
49 return iRes.format(key).toString(); |
49 if(key.equals("canvas_key_left")) |
50 } |
50 { |
51 |
51 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
52 if(key.equals("key_right")) |
52 return iRes.format(key).toString(); |
53 { |
53 } |
54 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
54 |
55 return iRes.format(key).toString(); |
55 // arrow right key name |
56 } |
56 if(key.equals("canvas_key_right")) |
57 |
57 { |
58 if(key.equals("key_select")) |
58 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
59 { |
59 return iRes.format(key).toString(); |
60 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
60 } |
61 return iRes.format(key).toString(); |
61 |
62 } |
62 // selection key name |
63 |
63 if(key.equals("canvas_key_selection_key")) |
64 if(key.equals("key_stop")) |
64 { |
65 { |
65 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
66 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
66 return iRes.format(key).toString(); |
67 return iRes.format(key).toString(); |
67 } |
68 } |
68 |
69 |
69 // media key stop, key name |
70 if(key.equals("alert_error")) |
70 if(key.equals("canvas_media_key_stop")) |
71 { |
71 { |
72 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
72 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
73 return iRes.format(key).toString(); |
73 return iRes.format(key).toString(); |
74 } |
74 } |
75 |
75 |
76 if(key.equals("alert_warning")) |
76 // media key play/pause, key name |
77 { |
77 if(key.equals("canvas_media_key_play")) |
78 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
78 { |
79 return iRes.format(key).toString(); |
79 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
80 } |
80 return iRes.format(key).toString(); |
81 |
81 } |
82 if(key.equals("alert_info")) |
82 |
83 { |
83 // media key previous (rewind), key name |
84 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
84 if(key.equals("canvas_media_key_previous")) |
85 return iRes.format(key).toString(); |
85 { |
86 } |
86 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
87 |
87 return iRes.format(key).toString(); |
88 if(key.equals("alert_conf")) |
88 } |
89 { |
89 |
90 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
90 // media key next (forward), key name |
91 return iRes.format(key).toString(); |
91 if(key.equals("canvas_media_key_next")) |
92 } |
92 { |
93 |
93 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
94 if(key.equals("alert_alarm")) |
94 return iRes.format(key).toString(); |
95 { |
95 } |
96 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
96 |
97 return iRes.format(key).toString(); |
97 // SK1, positive softkey - key name, used mainly in on-screen-keypad |
98 } |
98 if(key.equals("canvas_key_lsk")) |
99 |
99 { |
100 if(key.equals("alert_null")) |
100 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
101 { |
101 return iRes.format(key).toString(); |
102 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_"); |
102 } |
103 return iRes.format(key).toString(); |
103 |
104 } |
104 // SK2, negative softkey - key name, used mainly in on-screen-keypad |
105 |
105 if(key.equals("canvas_key_rsk")) |
106 if(key.equals("pb_fetch_number")) |
106 { |
107 { |
107 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
108 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
108 return iRes.format(key).toString(); |
109 return iRes.format(key).toString(); |
109 } |
110 } |
110 |
111 |
111 // Send key, "green phone key" key name |
112 if(key.equals("pb_fetch_number_short")) |
112 if(key.equals("canvas_key_send")) |
113 { |
113 { |
114 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
114 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
115 return iRes.format(key).toString(); |
115 return iRes.format(key).toString(); |
116 } |
116 } |
117 |
117 |
118 if(key.equals("pb_fetch_email")) |
118 // End key, "red phone key" key name |
119 { |
119 if(key.equals("canvas_key_end")) |
120 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
120 { |
121 return iRes.format(key).toString(); |
121 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
122 } |
122 return iRes.format(key).toString(); |
123 |
123 } |
124 if(key.equals("pb_fetch_email_short")) |
124 |
125 { |
125 // Clear key, in qwerty keyboard, key name |
126 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
126 if(key.equals("canvas_key_clear")) |
127 return iRes.format(key).toString(); |
127 { |
128 } |
128 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
129 |
129 return iRes.format(key).toString(); |
130 if(key.equals("create_call")) |
130 } |
131 { |
131 |
132 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
132 // Applications key, key name |
133 return iRes.format(key).toString(); |
133 if(key.equals("canvas_key_apps")) |
134 } |
134 { |
135 |
135 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
136 if(key.equals("create_call_short")) |
136 return iRes.format(key).toString(); |
137 { |
137 } |
138 iRes = ResourceLoader.getInstance("lcdui", "qtn_midp_option_"); |
138 |
139 return iRes.format(key).toString(); |
139 // Enter key in qwerty keyboard, key name |
140 } |
140 if(key.equals("canvas_key_enter")) |
141 |
141 { |
142 if(key.equals("back")) |
142 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
143 { |
143 return iRes.format(key).toString(); |
144 iRes = ResourceLoader.getInstance("lcduiavkon", "text_softkey_"); |
144 } |
145 return iRes.format(key).toString(); |
145 |
146 } |
146 // Voice/volume key, key name |
147 |
147 if(key.equals("canvas_key_voice")) |
148 if(key.equals("close")) |
148 { |
149 { |
149 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
150 iRes = ResourceLoader.getInstance("lcduiavkon", "text_softkey_"); |
150 return iRes.format(key).toString(); |
151 return iRes.format(key).toString(); |
151 } |
152 } |
152 |
153 |
153 // Modifier keys, key name |
154 if(key.equals("empty_list")) |
154 if(key.equals("canvas_key_modifier")) |
155 { |
155 { |
156 iRes = ResourceLoader.getInstance("lcduiavkon", "qtn_selec_"); |
156 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
157 return iRes.format(key).toString(); |
157 return iRes.format(key).toString(); |
158 } |
158 } |
159 |
159 |
160 if(key.equals("help")) |
160 // Space key in qwerty keyboard, key name |
161 { |
161 if(key.equals("canvas_key_space")) |
162 iRes = ResourceLoader.getInstance("lcduiavkon", "qtn_options_"); |
162 { |
163 return iRes.format(key).toString(); |
163 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
164 } |
164 return iRes.format(key).toString(); |
165 |
165 } |
|
166 |
|
167 // Escape key in qwerty keyboard, key name |
|
168 if(key.equals("canvas_key_escape")) |
|
169 { |
|
170 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
171 return iRes.format(key).toString(); |
|
172 } |
|
173 |
|
174 // Tab key in qwerty keyboard, key name |
|
175 if(key.equals("canvas_key_tab")) |
|
176 { |
|
177 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
178 return iRes.format(key).toString(); |
|
179 } |
|
180 |
|
181 // Delete key in qwerty keyboard, key name |
|
182 if(key.equals("canvas_key_delete")) |
|
183 { |
|
184 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
185 return iRes.format(key).toString(); |
|
186 } |
|
187 |
|
188 // Hash key in ITU-T keyboard, key name |
|
189 if(key.equals("canvas_key_hash_key")) |
|
190 { |
|
191 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
192 return iRes.format(key).toString(); |
|
193 } |
|
194 |
|
195 // Star key in ITU-T keyboard, key name |
|
196 if(key.equals("canvas_key_star_key")) |
|
197 { |
|
198 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
199 return iRes.format(key).toString(); |
|
200 } |
|
201 |
|
202 // back space button key name |
|
203 if(key.equals("canvas_key_backspace")) |
|
204 { |
|
205 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
206 return iRes.format(key).toString(); |
|
207 } |
|
208 |
|
209 // default text for error Alert |
|
210 if(key.equals("info_alert_error")) |
|
211 { |
|
212 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
213 return iRes.format(key).toString(); |
|
214 } |
|
215 |
|
216 // default text for warning Alert |
|
217 if(key.equals("info_alert_warning")) |
|
218 { |
|
219 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
220 return iRes.format(key).toString(); |
|
221 } |
|
222 |
|
223 // default text for information Alert |
|
224 if(key.equals("info_alert_information")) |
|
225 { |
|
226 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
227 return iRes.format(key).toString(); |
|
228 } |
|
229 |
|
230 // default text for confirmation Alert |
|
231 if(key.equals("info_alert_confirmation")) |
|
232 { |
|
233 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
234 return iRes.format(key).toString(); |
|
235 } |
|
236 |
|
237 // default text for alarm Alert |
|
238 if(key.equals("info_alert_alarm")) |
|
239 { |
|
240 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
241 return iRes.format(key).toString(); |
|
242 } |
|
243 |
|
244 // default text for alarm Alert (AlertType.NULL) |
|
245 if(key.equals("info_alert")) |
|
246 { |
|
247 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
248 return iRes.format(key).toString(); |
|
249 } |
|
250 |
|
251 // default text for Options menu - fetch contact from device phone book |
|
252 if(key.equals("opt_fetch")) |
|
253 { |
|
254 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
255 return iRes.format(key).toString(); |
|
256 } |
|
257 |
|
258 // default text for context menu - fetch contact from device phone book |
|
259 if(key.equals("menu_fetch")) |
|
260 { |
|
261 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
262 return iRes.format(key).toString(); |
|
263 } |
|
264 |
|
265 // default text for button - fetch contact from device phone book |
|
266 if(key.equals("button_fetch")) |
|
267 { |
|
268 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
269 return iRes.format(key).toString(); |
|
270 } |
|
271 |
|
272 // default text for Options menu - create a call |
|
273 if(key.equals("opt_call")) |
|
274 { |
|
275 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
276 return iRes.format(key).toString(); |
|
277 } |
|
278 |
|
279 // default text for context menu - create a call |
|
280 if(key.equals("menu_call")) |
|
281 { |
|
282 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
283 return iRes.format(key).toString(); |
|
284 } |
|
285 |
|
286 // default text for button - create a call |
|
287 if(key.equals("button_call")) |
|
288 { |
|
289 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
290 return iRes.format(key).toString(); |
|
291 } |
|
292 |
|
293 // String displayed in empty form or list |
|
294 if(key.equals("info_no_data")) |
|
295 { |
|
296 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
297 return iRes.format(key).toString(); |
|
298 } |
|
299 |
|
300 // Softkey label in Alert that has only one button - for opening "Options" menu |
|
301 if(key.equals("button_options_1")) |
|
302 { |
|
303 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
304 return iRes.format(key).toString(); |
|
305 } |
|
306 |
|
307 // Softkey label in Alert that has two buttons - for opening "Options" menu |
|
308 if(key.equals("button_options_2")) |
|
309 { |
|
310 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
311 return iRes.format(key).toString(); |
|
312 } |
|
313 |
|
314 // Softkey label in Alert - for implicit dismiss command, Note: this command is then the only command in Alert |
|
315 if(key.equals("button_alert_ok")) |
|
316 { |
|
317 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
318 return iRes.format(key).toString(); |
|
319 } |
|
320 |
|
321 // Softkey label in Alert - for implicit dismiss command, Note: in context menu. |
|
322 if(key.equals("menu_alert_dismiss")) |
|
323 { |
|
324 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
325 return iRes.format(key).toString(); |
|
326 } |
|
327 |
|
328 // IMPLICIT List default select command - in context menu |
|
329 if(key.equals("menu_implicit_list_select")) |
|
330 { |
|
331 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
332 return iRes.format(key).toString(); |
|
333 } |
|
334 |
|
335 // Default command labels |
|
336 |
|
337 // HELP - in Options menu |
|
338 if(key.equals("opt_cmd_help")) |
|
339 { |
|
340 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
341 return iRes.format(key).toString(); |
|
342 } |
|
343 |
|
344 // HELP - in context menu |
|
345 if(key.equals("menu_cmd_help")) |
|
346 { |
|
347 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
348 return iRes.format(key).toString(); |
|
349 } |
|
350 |
|
351 // HELP - if only one button/softkey |
|
352 if(key.equals("button_cmd_help_1")) |
|
353 { |
|
354 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
355 return iRes.format(key).toString(); |
|
356 } |
|
357 |
|
358 // HELP - if two buttons/softkeys |
|
359 if(key.equals("button_cmd_help_2")) |
|
360 { |
|
361 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
362 return iRes.format(key).toString(); |
|
363 } |
|
364 |
|
365 // STOP - in Options menu |
|
366 if(key.equals("opt_cmd_stop")) |
|
367 { |
|
368 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
369 return iRes.format(key).toString(); |
|
370 } |
|
371 |
|
372 // STOP - in context menu |
|
373 if(key.equals("menu_cmd_stop")) |
|
374 { |
|
375 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
376 return iRes.format(key).toString(); |
|
377 } |
|
378 |
|
379 // STOP - if only one button/softkey |
|
380 if(key.equals("button_cmd_stop_1")) |
|
381 { |
|
382 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
383 return iRes.format(key).toString(); |
|
384 } |
|
385 |
|
386 // STOP - if two buttons/softkeys |
|
387 if(key.equals("button_cmd_stop_2")) |
|
388 { |
|
389 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
390 return iRes.format(key).toString(); |
|
391 } |
|
392 |
|
393 // EXIT - in Options menu |
|
394 if(key.equals("opt_cmd_close")) |
|
395 { |
|
396 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
397 return iRes.format(key).toString(); |
|
398 } |
|
399 |
|
400 // EXIT - in context menu |
|
401 if(key.equals("menu_cmd_close")) |
|
402 { |
|
403 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
404 return iRes.format(key).toString(); |
|
405 } |
|
406 |
|
407 // EXIT - if only one button/softkey |
|
408 if(key.equals("button_cmd_close_1")) |
|
409 { |
|
410 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
411 return iRes.format(key).toString(); |
|
412 } |
|
413 |
|
414 // EXIT - if two buttons/softkeys |
|
415 if(key.equals("button_cmd_close_2")) |
|
416 { |
|
417 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
418 return iRes.format(key).toString(); |
|
419 } |
|
420 |
|
421 // SCREEN - in Options menu |
|
422 if(key.equals("opt_screen_cmd_select")) |
|
423 { |
|
424 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
425 return iRes.format(key).toString(); |
|
426 } |
|
427 |
|
428 // SCREEN - in context menu |
|
429 if(key.equals("menu_screen_cmd_select")) |
|
430 { |
|
431 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
432 return iRes.format(key).toString(); |
|
433 } |
|
434 |
|
435 // SCREEN - if only one button/softkey |
|
436 if(key.equals("button_screen_cmd_select_1")) |
|
437 { |
|
438 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
439 return iRes.format(key).toString(); |
|
440 } |
|
441 |
|
442 // SCREEN - if two buttons/softkeys |
|
443 if(key.equals("button_screen_cmd_select_2")) |
|
444 { |
|
445 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
446 return iRes.format(key).toString(); |
|
447 } |
|
448 |
|
449 // BACK - in Options menu |
|
450 if(key.equals("opt_cmd_back")) |
|
451 { |
|
452 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
453 return iRes.format(key).toString(); |
|
454 } |
|
455 |
|
456 // BACK - in context menu |
|
457 if(key.equals("menu_cmd_back")) |
|
458 { |
|
459 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
460 return iRes.format(key).toString(); |
|
461 } |
|
462 |
|
463 // BACK - if only one button/softkey |
|
464 if(key.equals("button_cmd_back_1")) |
|
465 { |
|
466 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
467 return iRes.format(key).toString(); |
|
468 } |
|
469 |
|
470 // BACK - if two buttons/softkeys |
|
471 if(key.equals("button_cmd_back_2")) |
|
472 { |
|
473 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
474 return iRes.format(key).toString(); |
|
475 } |
|
476 |
|
477 // CANCEL - in Options menu |
|
478 if(key.equals("opt_cmd_cancel")) |
|
479 { |
|
480 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
481 return iRes.format(key).toString(); |
|
482 } |
|
483 |
|
484 // CANCEL - in context menu |
|
485 if(key.equals("menu_cmd_cancel")) |
|
486 { |
|
487 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
488 return iRes.format(key).toString(); |
|
489 } |
|
490 |
|
491 // CANCEL - if only one button/softkey |
|
492 if(key.equals("button_cmd_cancel_1")) |
|
493 { |
|
494 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
495 return iRes.format(key).toString(); |
|
496 } |
|
497 |
|
498 // CANCEL - if two buttons/softkeys |
|
499 if(key.equals("button_cmd_cancel_2")) |
|
500 { |
|
501 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
502 return iRes.format(key).toString(); |
|
503 } |
|
504 |
|
505 // OK - in Options menu |
|
506 if(key.equals("opt_cmd_ok")) |
|
507 { |
|
508 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
509 return iRes.format(key).toString(); |
|
510 } |
|
511 |
|
512 // OK - in context menu |
|
513 if(key.equals("menu_cmd_ok")) |
|
514 { |
|
515 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
516 return iRes.format(key).toString(); |
|
517 } |
|
518 |
|
519 // OK - if only one button/softkey |
|
520 if(key.equals("button_cmd_ok_1")) |
|
521 { |
|
522 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
523 return iRes.format(key).toString(); |
|
524 } |
|
525 |
|
526 // OK - if two buttons/softkeys |
|
527 if(key.equals("button_cmd_ok_2")) |
|
528 { |
|
529 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
530 return iRes.format(key).toString(); |
|
531 } |
|
532 |
|
533 // ITEM - in Options menu |
|
534 if(key.equals("opt_item_cmd_select")) |
|
535 { |
|
536 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
537 return iRes.format(key).toString(); |
|
538 } |
|
539 |
|
540 // ITEM - in context menu |
|
541 if(key.equals("menu_item_cmd_select")) |
|
542 { |
|
543 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
544 return iRes.format(key).toString(); |
|
545 } |
|
546 |
|
547 // ITEM - if only one button/softkey |
|
548 if(key.equals("button_item_cmd_select_1")) |
|
549 { |
|
550 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
551 return iRes.format(key).toString(); |
|
552 } |
|
553 |
|
554 // ITEM - if two buttons/softkeys |
|
555 if(key.equals("button_item_cmd_select_2")) |
|
556 { |
|
557 iRes = ResourceLoader.getInstance("javauitoolkits", "txt_java_"); |
|
558 return iRes.format(key).toString(); |
|
559 } |
|
560 |
166 return SWT.getMessage(key); |
561 return SWT.getMessage(key); |
|
562 |
167 } |
563 } |
168 |
564 |
169 } |
565 } |