Revision 38712
tags/v2_0_0_Build_2051/frameworks/_fwAndami/castor.properties | ||
---|---|---|
1 |
org.exolab.castor.indent=true |
|
0 | 2 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/compile-classpath.xml | ||
---|---|---|
1 |
<project name="_fwAndami.compile-classpath" basedir="."> |
|
2 |
<!-- defines the classpath to be used for batch-compilation --> |
|
3 |
<property name="andami" location="../_fwAndami"/> |
|
4 |
<property name="andamiLibs" location="${andami}/lib"/> |
|
5 |
<path id="_fwAndami.compile-classpath"> |
|
6 |
<pathelement location="${andamiLibs}/beans.jar"/> |
|
7 |
<pathelement location="${andamiLibs}/castor-0.9.5.3-xml.jar"/> |
|
8 |
<pathelement location="${andamiLibs}/gvsig-i18n.jar"/> |
|
9 |
<pathelement location="${andamiLibs}/iver-utiles.jar"/> |
|
10 |
<pathelement location="${andamiLibs}/javaws.jar"/> |
|
11 |
<pathelement location="${andamiLibs}/JWizardComponent.jar"/> |
|
12 |
<pathelement location="${andamiLibs}/log4j-1.2.8.jar"/> |
|
13 |
<pathelement location="${andamiLibs}/tempFileManager.jar"/> |
|
14 |
<pathelement location="${andamiLibs}/xercesImpl.jar"/> |
|
15 |
<pathelement location="${andamiLibs}/xml-apis.jar"/> |
|
16 |
<pathelement location="${andamiLibs}/kxml2.jar"/> |
|
17 |
<pathelement location="${andamiLibs}/jcalendar.jar"/> |
|
18 |
</path> |
|
19 |
</project> |
|
0 | 20 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/src/iso_639.tab | ||
---|---|---|
1 |
|
|
2 |
## iso-639.tab |
|
3 |
## |
|
4 |
## Copyright (C) 2005 Alastair McKinstry <mckinstry@computer.org> |
|
5 |
## Released under the GNU License; see file COPYING for details |
|
6 |
## |
|
7 |
## PLEASE NOTE: THIS FILE IS DEPRECATED AND SCHEDULED TO BE REMOVED. |
|
8 |
## IT IS FOR BACKWARD-COMPATIBILITY ONLY: PLEASE USE THE ISO-639.XML |
|
9 |
## FILE INSTEAD. |
|
10 |
## |
|
11 |
## This file gives a list of all languages in the ISO-639 |
|
12 |
## standard, and is used to provide translations (via gettext) |
|
13 |
## |
|
14 |
## Status: ISO 639-2:1998 + additions and changes until 2003-03-05 |
|
15 |
## Source: http://lcweb.loc.gov/standards/iso639-2/englangn.html |
|
16 |
## |
|
17 |
## Columns: |
|
18 |
## iso-639-2 terminology code |
|
19 |
## iso-639-2 bibliography code |
|
20 |
## iso-639-1 code (XX if none exists) |
|
21 |
## Name (English) |
|
22 |
## |
|
23 |
## |
|
24 |
aar aar aa Afar |
|
25 |
abk abk ab Abkhazian |
|
26 |
ace ace XX Achinese |
|
27 |
ach ach XX Acoli |
|
28 |
ada ada XX Adangme |
|
29 |
ady ady XX Adyghe; Adygei |
|
30 |
afa afa XX Afro-Asiatic (Other) |
|
31 |
afh afh XX Afrihili |
|
32 |
afr afr af Afrikaans |
|
33 |
ain ain XX Ainu |
|
34 |
aka aka ak Akan |
|
35 |
akk akk XX Akkadian |
|
36 |
ale ale XX Aleut |
|
37 |
alg alg XX Algonquian languages |
|
38 |
alt alt XX Southern Altai |
|
39 |
amh amh am Amharic |
|
40 |
ang ang XX English, Old (ca. 450-1100) |
|
41 |
anp anp XX Angika |
|
42 |
apa apa XX Apache languages |
|
43 |
ara ara ar Arabic |
|
44 |
arc arc XX Aramaic |
|
45 |
arg arg an Aragonese |
|
46 |
arn arn XX Araucanian |
|
47 |
arp arp XX Arapaho |
|
48 |
art art XX Artificial (Other) |
|
49 |
arw arw XX Arawak |
|
50 |
asm asm as Assamese |
|
51 |
ast ast XX Asturian; Bable |
|
52 |
ath ath XX Athapascan languages |
|
53 |
aus aus XX Australian languages |
|
54 |
ava ava av Avaric |
|
55 |
ave ave ae Avestan |
|
56 |
awa awa XX Awadhi |
|
57 |
aym aym ay Aymara |
|
58 |
aze aze az Azerbaijani |
|
59 |
bad bad XX Banda |
|
60 |
bai bai XX Bamileke languages |
|
61 |
bak bak ba Bashkir |
|
62 |
bal bal XX Baluchi |
|
63 |
bam bam bm Bambara |
|
64 |
ban ban XX Balinese |
|
65 |
bas bas XX Basa |
|
66 |
bat bat XX Baltic (Other) |
|
67 |
bej bej XX Beja |
|
68 |
bel bel be Belarusian |
|
69 |
bem bem XX Bemba |
|
70 |
ben ben bn Bengali |
|
71 |
ber ber XX Berber (Other) |
|
72 |
bho bho XX Bhojpuri |
|
73 |
bih bih bh Bihari |
|
74 |
bik bik XX Bikol |
|
75 |
bin bin XX Bini |
|
76 |
bis bis bi Bislama |
|
77 |
bla bla XX Siksika |
|
78 |
bnt bnt XX Bantu (Other) |
|
79 |
bod tib bo Tibetan |
|
80 |
bos bos bs Bosnian |
|
81 |
bra bra XX Braj |
|
82 |
bre bre br Breton |
|
83 |
btk btk XX Batak (Indonesia) |
|
84 |
bua bua XX Buriat |
|
85 |
bug bug XX Buginese |
|
86 |
bul bul bg Bulgarian |
|
87 |
byn byn XX Blin; Bilin |
|
88 |
cad cad XX Caddo |
|
89 |
cai cai XX Central American Indian (Other) |
|
90 |
car car XX Carib |
|
91 |
cat cat ca Catalan; Valencian |
|
92 |
cau cau XX Caucasian (Other) |
|
93 |
ceb ceb XX Cebuano |
|
94 |
cel cel XX Celtic (Other) |
|
95 |
ces cze cs Czech |
|
96 |
cha cha ch Chamorro |
|
97 |
chb chb XX Chibcha |
|
98 |
che che ce Chechen |
|
99 |
chg chg XX Chagatai |
|
100 |
chk chk XX Chuukese |
|
101 |
chm chm XX Mari |
|
102 |
chn chn XX Chinook jargon |
|
103 |
cho cho XX Choctaw |
|
104 |
chp chp XX Chipewyan |
|
105 |
chr chr XX Cherokee |
|
106 |
chu chu cu Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic |
|
107 |
chv chv cv Chuvash |
|
108 |
chy chy XX Cheyenne |
|
109 |
cmc cmc XX Chamic languages |
|
110 |
cop cop XX Coptic |
|
111 |
cor cor kw Cornish |
|
112 |
cos cos co Corsican |
|
113 |
cpe cpe XX Creoles and pidgins, English based (Other) |
|
114 |
cpf cpf XX Creoles and pidgins, French-based (Other) |
|
115 |
cpp cpp XX Creoles and pidgins, Portuguese-based (Other) |
|
116 |
cre cre cr Cree |
|
117 |
crh crh XX Crimean Tatar; Crimean Turkish |
|
118 |
crp crp XX Creoles and pidgins (Other) |
|
119 |
csb csb XX Kashubian |
|
120 |
cus cus XX Cushitic (Other) |
|
121 |
cym wel cy Welsh |
|
122 |
dak dak XX Dakota |
|
123 |
dan dan da Danish |
|
124 |
dar dar XX Dargwa |
|
125 |
day day XX Dayak |
|
126 |
del del XX Delaware |
|
127 |
den den XX Slave (Athapascan) |
|
128 |
deu ger de German |
|
129 |
dgr dgr XX Dogrib |
|
130 |
din din XX Dinka |
|
131 |
div div dv Divehi; Dhivehi; Maldivian |
|
132 |
doi doi XX Dogri |
|
133 |
dra dra XX Dravidian (Other) |
|
134 |
dsb dsb XX Lower Sorbian |
|
135 |
dua dua XX Duala |
|
136 |
dum dum XX Dutch, Middle (ca. 1050-1350) |
|
137 |
dyu dyu XX Dyula |
|
138 |
dzo dzo dz Dzongkha |
|
139 |
efi efi XX Efik |
|
140 |
egy egy XX Egyptian (Ancient) |
|
141 |
eka eka XX Ekajuk |
|
142 |
ell gre el Greek, Modern (1453-) |
|
143 |
elx elx XX Elamite |
|
144 |
eng eng en English |
|
145 |
enm enm XX English, Middle (1100-1500) |
|
146 |
epo epo eo Esperanto |
|
147 |
est est et Estonian |
|
148 |
eus baq eu Basque |
|
149 |
ewe ewe ee Ewe |
|
150 |
ewo ewo XX Ewondo |
|
151 |
fan fan XX Fang |
|
152 |
fao fao fo Faroese |
|
153 |
fas per fa Persian |
|
154 |
fat fat XX Fanti |
|
155 |
fij fij fj Fijian |
|
156 |
fil fil XX Filipino; Pilipino |
|
157 |
fin fin fi Finnish |
|
158 |
fiu fiu XX Finno-Ugrian (Other) |
|
159 |
fon fon XX Fon |
|
160 |
fra fre fr French |
|
161 |
frm frm XX French, Middle (ca. 1400-1600) |
|
162 |
fro fro XX French, Old (842-ca. 1400) |
|
163 |
frr frr XX Northern Frisian |
|
164 |
frs frs XX Eastern Frisian |
|
165 |
fry fry fy Western Frisian |
|
166 |
ful ful ff Fulah |
|
167 |
fur fur XX Friulian |
|
168 |
gaa gaa XX Ga |
|
169 |
gay gay XX Gayo |
|
170 |
gba gba XX Gbaya |
|
171 |
gem gem XX Germanic (Other) |
|
172 |
gez gez XX Geez |
|
173 |
gil gil XX Gilbertese |
|
174 |
gla gla gd Gaelic; Scottish Gaelic |
|
175 |
gle gle ga Irish |
|
176 |
glg glg gl Galician |
|
177 |
glv glv gv Manx |
|
178 |
gmh gmh XX German, Middle High (ca. 1050-1500) |
|
179 |
goh goh XX German, Old High (ca. 750-1050) |
|
180 |
gon gon XX Gondi |
|
181 |
gor gor XX Gorontalo |
|
182 |
got got XX Gothic |
|
183 |
grb grb XX Grebo |
|
184 |
grc grc XX Greek, Ancient (to 1453) |
|
185 |
grn grn gn Guarani |
|
186 |
gsw gsw XX Alemanic; Swiss German |
|
187 |
guj guj gu Gujarati |
|
188 |
gwi gwi XX Gwich´in |
|
189 |
hai hai XX Haida |
|
190 |
hat hat ht Haitian; Haitian Creole |
|
191 |
hau hau ha Hausa |
|
192 |
haw haw XX Hawaiian |
|
193 |
heb heb he Hebrew |
|
194 |
her her hz Herero |
|
195 |
hil hil XX Hiligaynon |
|
196 |
him him XX Himachali |
|
197 |
hin hin hi Hindi |
|
198 |
hit hit XX Hittite |
|
199 |
hmn hmn XX Hmong |
|
200 |
hmo hmo ho Hiri Motu |
|
201 |
hrv scr hr Croatian |
|
202 |
hsb hsb XX Upper Sorbian |
|
203 |
hun hun hu Hungarian |
|
204 |
hup hup XX Hupa |
|
205 |
hye arm hy Armenian |
|
206 |
iba iba XX Iban |
|
207 |
ibo ibo ig Igbo |
|
208 |
ido ido io Ido |
|
209 |
iii iii ii Sichuan Yi |
|
210 |
ijo ijo XX Ijo |
|
211 |
iku iku iu Inuktitut |
|
212 |
ile ile ie Interlingue |
|
213 |
ilo ilo XX Iloko |
|
214 |
ina ina ia Interlingua (International Auxiliary Language Association) |
|
215 |
inc inc XX Indic (Other) |
|
216 |
ind ind id Indonesian |
|
217 |
ine ine XX Indo-European (Other) |
|
218 |
inh inh XX Ingush |
|
219 |
ipk ipk ik Inupiaq |
|
220 |
ira ira XX Iranian (Other) |
|
221 |
iro iro XX Iroquoian languages |
|
222 |
isl ice is Icelandic |
|
223 |
ita ita it Italian |
|
224 |
jav jav jv Javanese |
|
225 |
jbo jbo XX Lojban |
|
226 |
jpn jpn ja Japanese |
|
227 |
jpr jpr XX Judeo-Persian |
|
228 |
jrb jrb XX Judeo-Arabic |
|
229 |
kaa kaa XX Kara-Kalpak |
|
230 |
kab kab XX Kabyle |
|
231 |
kac kac XX Kachin |
|
232 |
kal kal kl Kalaallisut; Greenlandic |
|
233 |
kam kam XX Kamba |
|
234 |
kan kan kn Kannada |
|
235 |
kar kar XX Karen |
|
236 |
kas kas ks Kashmiri |
|
237 |
kat geo ka Georgian |
|
238 |
kau kau kr Kanuri |
|
239 |
kaw kaw XX Kawi |
|
240 |
kaz kaz kk Kazakh |
|
241 |
kbd kbd XX Kabardian |
|
242 |
kha kha XX Khasi |
|
243 |
khi khi XX Khoisan (Other) |
|
244 |
khm khm km Khmer |
|
245 |
kho kho XX Khotanese |
|
246 |
kik kik ki Kikuyu; Gikuyu |
|
247 |
kin kin rw Kinyarwanda |
|
248 |
kir kir ky Kirghiz |
|
249 |
kmb kmb XX Kimbundu |
|
250 |
kok kok XX Konkani |
|
251 |
kom kom kv Komi |
|
252 |
kon kon kg Kongo |
|
253 |
kor kor ko Korean |
|
254 |
kos kos XX Kosraean |
|
255 |
kpe kpe XX Kpelle |
|
256 |
krc krc XX Karachay-Balkar |
|
257 |
krl krl XX Karelian |
|
258 |
kro kro XX Kru |
|
259 |
kru kru XX Kurukh |
|
260 |
kua kua kj Kuanyama; Kwanyama |
|
261 |
kum kum XX Kumyk |
|
262 |
kur kur ku Kurdish |
|
263 |
kut kut XX Kutenai |
|
264 |
lad lad XX Ladino |
|
265 |
lah lah XX Lahnda |
|
266 |
lam lam XX Lamba |
|
267 |
lao lao lo Lao |
|
268 |
lat lat la Latin |
|
269 |
lav lav lv Latvian |
|
270 |
lez lez XX Lezghian |
|
271 |
lim lim li Limburgan; Limburger; Limburgish |
|
272 |
lin lin ln Lingala |
|
273 |
lit lit lt Lithuanian |
|
274 |
lol lol XX Mongo |
|
275 |
loz loz XX Lozi |
|
276 |
ltz ltz lb Luxembourgish; Letzeburgesch |
|
277 |
lua lua XX Luba-Lulua |
|
278 |
lub lub lu Luba-Katanga |
|
279 |
lug lug lg Ganda |
|
280 |
lui lui XX Luiseno |
|
281 |
lun lun XX Lunda |
|
282 |
luo luo XX Luo (Kenya and Tanzania) |
|
283 |
lus lus XX Lushai |
|
284 |
mad mad XX Madurese |
|
285 |
mag mag XX Magahi |
|
286 |
mah mah mh Marshallese |
|
287 |
mai mai XX Maithili |
|
288 |
mak mak XX Makasar |
|
289 |
mal mal ml Malayalam |
|
290 |
man man XX Mandingo |
|
291 |
map map XX Austronesian (Other) |
|
292 |
mar mar mr Marathi |
|
293 |
mas mas XX Masai |
|
294 |
mdf mdf XX Moksha |
|
295 |
mdr mdr XX Mandar |
|
296 |
men men XX Mende |
|
297 |
mga mga XX Irish, Middle (900-1200) |
|
298 |
mic mic XX Mi'kmaq; Micmac |
|
299 |
min min XX Minangkabau |
|
300 |
mis mis XX Miscellaneous languages |
|
301 |
mkd mac mk Macedonian |
|
302 |
mkh mkh XX Mon-Khmer (Other) |
|
303 |
mlg mlg mg Malagasy |
|
304 |
mlt mlt mt Maltese |
|
305 |
mnc mnc XX Manchu |
|
306 |
mni mni XX Manipuri |
|
307 |
mno mno XX Manobo languages |
|
308 |
moh moh XX Mohawk |
|
309 |
mol mol mo Moldavian |
|
310 |
mon mon mn Mongolian |
|
311 |
mos mos XX Mossi |
|
312 |
mri mao mi Maori |
|
313 |
msa may ms Malay |
|
314 |
mul mul XX Multiple languages |
|
315 |
mun mun XX Munda languages |
|
316 |
mus mus XX Creek |
|
317 |
mwl mwl XX Mirandese |
|
318 |
mwr mwr XX Marwari |
|
319 |
mya bur my Burmese |
|
320 |
myn myn XX Mayan languages |
|
321 |
myv myv XX Erzya |
|
322 |
nah nah XX Nahuatl |
|
323 |
nai nai XX North American Indian |
|
324 |
nap nap XX Neapolitan |
|
325 |
nau nau na Nauru |
|
326 |
nav nav nv Navajo; Navaho |
|
327 |
nbl nbl nr Ndebele, South; South Ndebele |
|
328 |
nde nde nd Ndebele, North; North Ndebele |
|
329 |
ndo ndo ng Ndonga |
|
330 |
nds nds XX Low German; Low Saxon; German, Low; Saxon, Low |
|
331 |
nep nep ne Nepali |
|
332 |
new new XX Newari; Nepal Bhasa |
|
333 |
nia nia XX Nias |
|
334 |
nic nic XX Niger-Kordofanian (Other) |
|
335 |
niu niu XX Niuean |
|
336 |
nld dut nl Dutch; Flemish |
|
337 |
nno nno nn Norwegian Nynorsk; Nynorsk, Norwegian |
|
338 |
nob nob nb Norwegian Bokmål; Bokmål, Norwegian |
|
339 |
nog nog XX Nogai |
|
340 |
non non XX Norse, Old |
|
341 |
nor nor no Norwegian |
|
342 |
nqo nqo XX N'ko |
|
343 |
nso nso XX Northern Sotho, Pedi; Sepedi |
|
344 |
nub nub XX Nubian languages |
|
345 |
nwc nwc XX Classical Newari; Old Newari; Classical Nepal Bhasa |
|
346 |
nya nya ny Chichewa; Chewa; Nyanja |
|
347 |
nym nym XX Nyamwezi |
|
348 |
nyn nyn XX Nyankole |
|
349 |
nyo nyo XX Nyoro |
|
350 |
nzi nzi XX Nzima |
|
351 |
oci oci oc Occitan (post 1500); Provençal |
|
352 |
oji oji oj Ojibwa |
|
353 |
ori ori or Oriya |
|
354 |
orm orm om Oromo |
|
355 |
osa osa XX Osage |
|
356 |
oss oss os Ossetian; Ossetic |
|
357 |
ota ota XX Turkish, Ottoman (1500-1928) |
|
358 |
oto oto XX Otomian languages |
|
359 |
paa paa XX Papuan (Other) |
|
360 |
pag pag XX Pangasinan |
|
361 |
pal pal XX Pahlavi |
|
362 |
pam pam XX Pampanga |
|
363 |
pan pan pa Panjabi; Punjabi |
|
364 |
pap pap XX Papiamento |
|
365 |
pau pau XX Palauan |
|
366 |
peo peo XX Persian, Old (ca. 600-400 B.C.) |
|
367 |
phi phi XX Philippine (Other) |
|
368 |
phn phn XX Phoenician |
|
369 |
pli pli pi Pali |
|
370 |
pol pol pl Polish |
|
371 |
pon pon XX Pohnpeian |
|
372 |
por por pt Portuguese |
|
373 |
pra pra XX Prakrit languages |
|
374 |
pro pro XX Provençal, Old (to 1500) |
|
375 |
pus pus ps Pushto |
|
376 |
qaa-qtz qaa-qtz XX Reserved for local use |
|
377 |
que que qu Quechua |
|
378 |
raj raj XX Rajasthani |
|
379 |
rap rap XX Rapanui |
|
380 |
rar rar XX Rarotongan |
|
381 |
roa roa XX Romance (Other) |
|
382 |
roh roh rm Raeto-Romance |
|
383 |
rom rom XX Romany |
|
384 |
ron rum ro Romanian |
|
385 |
run run rn Rundi |
|
386 |
rup rup XX Aromanian; Arumanian; Macedo-Romanian |
|
387 |
rus rus ru Russian |
|
388 |
sad sad XX Sandawe |
|
389 |
sag sag sg Sango |
|
390 |
sah sah XX Yakut |
|
391 |
sai sai XX South American Indian (Other) |
|
392 |
sal sal XX Salishan languages |
|
393 |
sam sam XX Samaritan Aramaic |
|
394 |
san san sa Sanskrit |
|
395 |
sas sas XX Sasak |
|
396 |
sat sat XX Santali |
|
397 |
scn scn XX Sicilian |
|
398 |
sco sco XX Scots |
|
399 |
sel sel XX Selkup |
|
400 |
sem sem XX Semitic (Other) |
|
401 |
sga sga XX Irish, Old (to 900) |
|
402 |
sgn sgn XX Sign Languages |
|
403 |
shn shn XX Shan |
|
404 |
sid sid XX Sidamo |
|
405 |
sin sin si Sinhala; Sinhalese |
|
406 |
sio sio XX Siouan languages |
|
407 |
sit sit XX Sino-Tibetan (Other) |
|
408 |
sla sla XX Slavic (Other) |
|
409 |
slk slo sk Slovak |
|
410 |
slv slv sl Slovenian |
|
411 |
sma sma XX Southern Sami |
|
412 |
sme sme se Northern Sami |
|
413 |
smi smi XX Sami languages (Other) |
|
414 |
smj smj XX Lule Sami |
|
415 |
smn smn XX Inari Sami |
|
416 |
smo smo sm Samoan |
|
417 |
sms sms XX Skolt Sami |
|
418 |
sna sna sn Shona |
|
419 |
snd snd sd Sindhi |
|
420 |
snk snk XX Soninke |
|
421 |
sog sog XX Sogdian |
|
422 |
som som so Somali |
|
423 |
son son XX Songhai |
|
424 |
sot sot st Sotho, Southern |
|
425 |
spa spa es Spanish; Castilian |
|
426 |
sqi alb sq Albanian |
|
427 |
srd srd sc Sardinian |
|
428 |
srn srn XX Sranan Tongo |
|
429 |
srp scc sr Serbian |
|
430 |
srr srr XX Serer |
|
431 |
ssa ssa XX Nilo-Saharan (Other) |
|
432 |
ssw ssw ss Swati |
|
433 |
suk suk XX Sukuma |
|
434 |
sun sun su Sundanese |
|
435 |
sus sus XX Susu |
|
436 |
sux sux XX Sumerian |
|
437 |
swa swa sw Swahili |
|
438 |
swe swe sv Swedish |
|
439 |
syr syr XX Syriac |
|
440 |
tah tah ty Tahitian |
|
441 |
tai tai XX Tai (Other) |
|
442 |
tam tam ta Tamil |
|
443 |
tat tat tt Tatar |
|
444 |
tel tel te Telugu |
|
445 |
tem tem XX Timne |
|
446 |
ter ter XX Tereno |
|
447 |
tet tet XX Tetum |
|
448 |
tgk tgk tg Tajik |
|
449 |
tgl tgl tl Tagalog |
|
450 |
tha tha th Thai |
|
451 |
tig tig XX Tigre |
|
452 |
tir tir ti Tigrinya |
|
453 |
tiv tiv XX Tiv |
|
454 |
tkl tkl XX Tokelau |
|
455 |
tlh tlh XX Klingon; tlhIngan-Hol |
|
456 |
tli tli XX Tlingit |
|
457 |
tmh tmh XX Tamashek |
|
458 |
tog tog XX Tonga (Nyasa) |
|
459 |
ton ton to Tonga (Tonga Islands) |
|
460 |
tpi tpi XX Tok Pisin |
|
461 |
tsi tsi XX Tsimshian |
|
462 |
tsn tsn tn Tswana |
|
463 |
tso tso ts Tsonga |
|
464 |
tuk tuk tk Turkmen |
|
465 |
tum tum XX Tumbuka |
|
466 |
tup tup XX Tupi languages |
|
467 |
tur tur tr Turkish |
|
468 |
tut tut XX Altaic (Other) |
|
469 |
tvl tvl XX Tuvalu |
|
470 |
twi twi tw Twi |
|
471 |
tyv tyv XX Tuvinian |
|
472 |
udm udm XX Udmurt |
|
473 |
uga uga XX Ugaritic |
|
474 |
uig uig ug Uighur; Uyghur |
|
475 |
ukr ukr uk Ukrainian |
|
476 |
umb umb XX Umbundu |
|
477 |
und und XX Undetermined |
|
478 |
urd urd ur Urdu |
|
479 |
uzb uzb uz Uzbek |
|
480 |
vai vai XX Vai |
|
481 |
ven ven ve Venda |
|
482 |
vie vie vi Vietnamese |
|
483 |
vol vol vo Volapük |
|
484 |
vot vot XX Votic |
|
485 |
wak wak XX Wakashan languages |
|
486 |
wal wal XX Walamo |
|
487 |
war war XX Waray |
|
488 |
was was XX Washo |
|
489 |
wen wen XX Sorbian languages |
|
490 |
wln wln wa Walloon |
|
491 |
wol wol wo Wolof |
|
492 |
xal xal XX Kalmyk; Oirat |
|
493 |
xho xho xh Xhosa |
|
494 |
yao yao XX Yao |
|
495 |
yap yap XX Yapese |
|
496 |
yid yid yi Yiddish |
|
497 |
yor yor yo Yoruba |
|
498 |
ypk ypk XX Yupik languages |
|
499 |
zap zap XX Zapotec |
|
500 |
zen zen XX Zenaga |
|
501 |
zha zha za Zhuang; Chuang |
|
502 |
zho chi zh Chinese |
|
503 |
znd znd XX Zande |
|
504 |
zul zul zu Zulu |
|
505 |
zun zun XX Zuni |
|
506 |
zxx zxx XX No linguistic content |
|
0 | 507 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/src/org/gvsig/andami/ui/AndamiEventQueue.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
* |
|
19 |
* For more information, contact: |
|
20 |
* |
|
21 |
* Generalitat Valenciana |
|
22 |
* Conselleria d'Infraestructures i Transport |
|
23 |
* Av. Blasco Ib??ez, 50 |
|
24 |
* 46010 VALENCIA |
|
25 |
* SPAIN |
|
26 |
* |
|
27 |
* +34 963862235 |
|
28 |
* gvsig@gva.es |
|
29 |
* www.gvsig.gva.es |
|
30 |
* |
|
31 |
* or |
|
32 |
* |
|
33 |
* IVER T.I. S.A |
|
34 |
* Salamanca 50 |
|
35 |
* 46005 Valencia |
|
36 |
* Spain |
|
37 |
* |
|
38 |
* +34 963163400 |
|
39 |
* dac@iver.es |
|
40 |
*/ |
|
41 |
package org.gvsig.andami.ui; |
|
42 |
|
|
43 |
import java.awt.AWTEvent; |
|
44 |
import java.awt.EventQueue; |
|
45 |
import java.awt.event.MouseEvent; |
|
46 |
|
|
47 |
import javax.swing.JOptionPane; |
|
48 |
|
|
49 |
import org.gvsig.andami.PluginServices; |
|
50 |
import org.gvsig.andami.messages.Messages; |
|
51 |
import org.gvsig.andami.messages.NotificationManager; |
|
52 |
import org.slf4j.Logger; |
|
53 |
import org.slf4j.LoggerFactory; |
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
/** |
|
58 |
* DOCUMENT ME! |
|
59 |
* |
|
60 |
* @author Fernando Gonz?lez Cort?s |
|
61 |
*/ |
|
62 |
public class AndamiEventQueue extends EventQueue { |
|
63 |
private static Logger logger = LoggerFactory.getLogger(AndamiEventQueue.class); |
|
64 |
|
|
65 |
protected void dispatchEvent(AWTEvent event){ |
|
66 |
try{ |
|
67 |
super.dispatchEvent(event); |
|
68 |
} catch(RuntimeException e){ |
|
69 |
if( event instanceof MouseEvent ) { |
|
70 |
MouseEvent me = (MouseEvent)event; |
|
71 |
if( me.getButton() == 0 && me.getClickCount()==0 ) { |
|
72 |
// Intentamos que los errores que se produzcan con los eventos de movimiento del raton |
|
73 |
// no provoquen la aparicion de la ventana de errores ya que llega a bloquear al usuario. |
|
74 |
// Intentaremos sacarlos en la barra de estado si podemos. |
|
75 |
try { |
|
76 |
PluginServices.getMainFrame().getStatusBar().message(e.getMessage(), JOptionPane.ERROR_MESSAGE); |
|
77 |
} catch(Throwable ex) { |
|
78 |
// Ignora cualquier error que se produzca intentando mostrar el mensaje de error y nos |
|
79 |
// conformaremos con que este en el log. |
|
80 |
} |
|
81 |
logger.info("Error dispaching event",e); |
|
82 |
return; |
|
83 |
} |
|
84 |
} |
|
85 |
NotificationManager.addError(e);//Messages.getString("PluginServices.Bug en el c?digo"), e); |
|
86 |
} catch (Error e){ |
|
87 |
NotificationManager.addError( |
|
88 |
Messages.getString("Error de la applicacion. \nEs conveniente que salga de la aplicaci?n\n\n"+e.getLocalizedMessage()), e); |
|
89 |
} |
|
90 |
} |
|
91 |
} |
|
0 | 92 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/src/org/gvsig/andami/ui/wizard/WizardAndami.java | ||
---|---|---|
1 |
package org.gvsig.andami.ui.wizard; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
|
|
5 |
import javax.swing.ImageIcon; |
|
6 |
import javax.swing.JPanel; |
|
7 |
|
|
8 |
import org.gvsig.andami.PluginServices; |
|
9 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
10 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
11 |
|
|
12 |
import jwizardcomponent.CancelAction; |
|
13 |
import jwizardcomponent.DefaultJWizardComponents; |
|
14 |
import jwizardcomponent.FinishAction; |
|
15 |
|
|
16 |
|
|
17 |
public class WizardAndami extends JPanel implements IWindow { |
|
18 |
WindowInfo viewInfo = null; |
|
19 |
WizardPanelWithLogo wizardPanel; |
|
20 |
|
|
21 |
// No deber?an necesitarse un FinishAction y un CancelAction, pero bueno, |
|
22 |
// lo mantengo por ahora. |
|
23 |
private class CloseAction extends FinishAction |
|
24 |
{ |
|
25 |
IWindow v; |
|
26 |
public CloseAction(IWindow view) |
|
27 |
{ |
|
28 |
super(wizardPanel.getWizardComponents()); |
|
29 |
v = view; |
|
30 |
} |
|
31 |
public void performAction() { |
|
32 |
PluginServices.getMDIManager().closeWindow(v); |
|
33 |
} |
|
34 |
|
|
35 |
} |
|
36 |
private class CloseAction2 extends CancelAction |
|
37 |
{ |
|
38 |
|
|
39 |
IWindow v; |
|
40 |
public CloseAction2(IWindow view) |
|
41 |
{ |
|
42 |
super(wizardPanel.getWizardComponents()); |
|
43 |
v = view; |
|
44 |
} |
|
45 |
public void performAction() { |
|
46 |
PluginServices.getMDIManager().closeWindow(v); |
|
47 |
} |
|
48 |
|
|
49 |
} |
|
50 |
|
|
51 |
|
|
52 |
public WizardAndami(ImageIcon logo) |
|
53 |
{ |
|
54 |
wizardPanel = new WizardPanelWithLogo(logo); |
|
55 |
CloseAction closeAction = new CloseAction(this); |
|
56 |
CloseAction2 closeAction2 = new CloseAction2(this); |
|
57 |
wizardPanel.getWizardComponents().setFinishAction(closeAction); |
|
58 |
wizardPanel.getWizardComponents().setCancelAction(closeAction2); |
|
59 |
|
|
60 |
this.setLayout(new BorderLayout()); |
|
61 |
this.add(wizardPanel, BorderLayout.CENTER); |
|
62 |
} |
|
63 |
|
|
64 |
public DefaultJWizardComponents getWizardComponents() |
|
65 |
{ |
|
66 |
return wizardPanel.getWizardComponents(); |
|
67 |
} |
|
68 |
|
|
69 |
|
|
70 |
public WindowInfo getWindowInfo() { |
|
71 |
if (viewInfo == null) |
|
72 |
{ |
|
73 |
viewInfo = new WindowInfo(WindowInfo.MODALDIALOG|WindowInfo.RESIZABLE); |
|
74 |
} |
|
75 |
return viewInfo; |
|
76 |
} |
|
77 |
|
|
78 |
public Object getWindowProfile() { |
|
79 |
// TODO Auto-generated method stub |
|
80 |
return WindowInfo.DIALOG_PROFILE; |
|
81 |
} |
|
82 |
|
|
83 |
} |
|
0 | 84 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/src/org/gvsig/andami/ui/wizard/WizardPanelWithLogo.java | ||
---|---|---|
1 |
package org.gvsig.andami.ui.wizard; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
import java.awt.Color; |
|
5 |
|
|
6 |
import javax.swing.ImageIcon; |
|
7 |
import javax.swing.JLabel; |
|
8 |
import javax.swing.JPanel; |
|
9 |
import javax.swing.JSeparator; |
|
10 |
|
|
11 |
import jwizardcomponent.CancelAction; |
|
12 |
import jwizardcomponent.DefaultJWizardComponents; |
|
13 |
import jwizardcomponent.FinishAction; |
|
14 |
import jwizardcomponent.common.SimpleButtonPanel; |
|
15 |
|
|
16 |
public class WizardPanelWithLogo extends JPanel { |
|
17 |
DefaultJWizardComponents wizardComponents; |
|
18 |
|
|
19 |
JPanel buttonPanel; |
|
20 |
JLabel statusLabel = new JLabel(); |
|
21 |
|
|
22 |
ImageIcon logo; |
|
23 |
|
|
24 |
public WizardPanelWithLogo(ImageIcon logo) { |
|
25 |
this.logo = logo; |
|
26 |
wizardComponents = new DefaultJWizardComponents(); |
|
27 |
init(); |
|
28 |
} |
|
29 |
|
|
30 |
private void init() { |
|
31 |
|
|
32 |
|
|
33 |
JPanel logoPanel = new JPanel(); |
|
34 |
|
|
35 |
String fileString; |
|
36 |
if (logo.toString().indexOf("file:") < 0 && |
|
37 |
logo.toString().indexOf("http:") < 0) { |
|
38 |
fileString = "file:///" +System.getProperty("user.dir") +"/" |
|
39 |
+logo.toString(); |
|
40 |
fileString = fileString.replaceAll("\\\\", "/"); |
|
41 |
} else { |
|
42 |
fileString = logo.toString(); |
|
43 |
} |
|
44 |
logoPanel.add(new JLabel(logo)); |
|
45 |
logoPanel.setBackground(Color.WHITE); |
|
46 |
this.setLayout(new BorderLayout()); |
|
47 |
this.add(logoPanel, BorderLayout.WEST); |
|
48 |
this.add(wizardComponents.getWizardPanelsContainer(), |
|
49 |
BorderLayout.CENTER); |
|
50 |
|
|
51 |
JPanel auxPanel = new JPanel(new BorderLayout()); |
|
52 |
auxPanel.add(new JSeparator(), BorderLayout.NORTH); |
|
53 |
|
|
54 |
buttonPanel = new SimpleButtonPanel(wizardComponents); |
|
55 |
auxPanel.add(buttonPanel); |
|
56 |
this.add(auxPanel, BorderLayout.SOUTH); |
|
57 |
|
|
58 |
|
|
59 |
wizardComponents.setFinishAction(new FinishAction(wizardComponents) { |
|
60 |
public void performAction() { |
|
61 |
// dispose(); |
|
62 |
} |
|
63 |
}); |
|
64 |
wizardComponents.setCancelAction(new CancelAction(wizardComponents) { |
|
65 |
public void performAction() { |
|
66 |
// dispose(); |
|
67 |
} |
|
68 |
}); |
|
69 |
} |
|
70 |
|
|
71 |
public DefaultJWizardComponents getWizardComponents(){ |
|
72 |
return wizardComponents; |
|
73 |
} |
|
74 |
|
|
75 |
public void setWizardComponents(DefaultJWizardComponents aWizardComponents){ |
|
76 |
wizardComponents = aWizardComponents; |
|
77 |
} |
|
78 |
|
|
79 |
public void show() { |
|
80 |
wizardComponents.updateComponents(); |
|
81 |
super.setVisible(true); |
|
82 |
} |
|
83 |
|
|
84 |
} |
|
0 | 85 |
tags/v2_0_0_Build_2051/frameworks/_fwAndami/src/org/gvsig/andami/ui/wizard/UnsavedDataPanel.java | ||
---|---|---|
1 |
package org.gvsig.andami.ui.wizard; |
|
2 |
|
|
3 |
import java.awt.BorderLayout; |
|
4 |
import java.awt.Color; |
|
5 |
import java.awt.Dimension; |
|
6 |
import java.awt.FlowLayout; |
|
7 |
import java.awt.GridBagConstraints; |
|
8 |
import java.awt.GridBagLayout; |
|
9 |
import java.awt.Insets; |
|
10 |
import java.awt.event.ActionEvent; |
|
11 |
import java.awt.event.ActionListener; |
|
12 |
import java.awt.event.MouseEvent; |
|
13 |
import java.awt.event.MouseListener; |
|
14 |
import java.awt.image.BufferedImage; |
|
15 |
import java.util.ArrayList; |
|
16 |
import java.util.Iterator; |
|
17 |
|
|
18 |
import javax.swing.ImageIcon; |
|
19 |
import javax.swing.JCheckBox; |
|
20 |
import javax.swing.JLabel; |
|
21 |
import javax.swing.JPanel; |
|
22 |
import javax.swing.JScrollPane; |
|
23 |
|
|
24 |
import org.gvsig.andami.PluginServices; |
|
25 |
import org.gvsig.andami.plugins.status.IUnsavedData; |
|
26 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
27 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
28 |
import org.gvsig.gui.beans.swing.JButton; |
|
29 |
|
|
30 |
|
|
31 |
/** |
|
32 |
* Ask for elements to save before application exit |
|
33 |
* |
|
34 |
* |
|
35 |
*/ |
|
36 |
public class UnsavedDataPanel extends JPanel implements IWindow, ActionListener { |
|
37 |
/** |
|
38 |
* |
|
39 |
*/ |
|
40 |
private static final long serialVersionUID = -4745219917358767905L; |
|
41 |
|
|
42 |
|
|
43 |
private static ImageIcon blanckIcon = null; |
|
44 |
private JPanel pResources = null; |
|
45 |
private JPanel pButtons = null; |
|
46 |
private JScrollPane pScrollList = null; |
|
47 |
private myList list = null; |
|
48 |
private JLabel lblDescription = null; |
|
49 |
private JButton botSave = null; |
|
50 |
private JButton botDiscard = null; |
|
51 |
private JButton botDontExit = null; |
|
52 |
private JPanel pActionButtons = null; |
|
53 |
private JPanel pSelectionButtons = null; |
|
54 |
private JButton botSelectAll = null; |
|
55 |
private JButton botDeselectAll = null; |
|
56 |
|
|
57 |
private ArrayList listeners = new ArrayList(); |
|
58 |
private JLabel lblResourceDescription = null; |
|
59 |
private IUnsavedData[] unsavedDataList; |
|
60 |
private String windowTitle = PluginServices.getText(this, "save_resources"); |
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
/** |
|
65 |
* This is the default constructor |
|
66 |
*/ |
|
67 |
public UnsavedDataPanel(IUnsavedData[] unsavedDatalist) { |
|
68 |
super(); |
|
69 |
initialize(); |
|
70 |
this.setUnsavedDataArray(unsavedDatalist); |
|
71 |
} |
|
72 |
|
|
73 |
/** |
|
74 |
* This method initializes this |
|
75 |
* |
|
76 |
* @return void |
|
77 |
*/ |
|
78 |
private void initialize() { |
|
79 |
BorderLayout borderLayout = new BorderLayout(); |
|
80 |
borderLayout.setHgap(5); |
|
81 |
borderLayout.setVgap(5); |
|
82 |
lblDescription = new JLabel(); |
|
83 |
lblDescription.setText(PluginServices.getText(this, "select_resources_to_save_before_exit")); |
|
84 |
lblDescription.setPreferredSize(new Dimension(497, 40)); |
|
85 |
lblDescription.setName("lblDescription"); |
|
86 |
this.setLayout(borderLayout); |
|
87 |
this.setSize(396, 272); |
|
88 |
this.add(getPResources(), java.awt.BorderLayout.CENTER); |
|
89 |
this.add(getPButtons(), java.awt.BorderLayout.SOUTH); |
|
90 |
this.add(lblDescription, BorderLayout.NORTH); |
|
91 |
} |
|
92 |
|
|
93 |
/** |
|
94 |
* This method initializes pResources |
|
95 |
* |
|
96 |
* @return javax.swing.JPanel |
|
97 |
*/ |
|
98 |
private JPanel getPResources() { |
|
99 |
if (pResources == null) { |
|
100 |
pResources = new JPanel(); |
|
101 |
pResources.setLayout(new BorderLayout()); |
|
102 |
pResources.add(getPScrollList(), BorderLayout.CENTER); |
|
103 |
pResources.add(getLblResourceDescription(), BorderLayout.SOUTH); |
|
104 |
} |
|
105 |
return pResources; |
|
106 |
} |
|
107 |
|
|
108 |
|
|
109 |
/** |
|
110 |
* This method initializes lblResourceDescription |
|
111 |
* |
|
112 |
* @return javax.swing.JLabel |
|
113 |
*/ |
|
114 |
private JLabel getLblResourceDescription() { |
|
115 |
if (lblResourceDescription == null) { |
|
116 |
lblResourceDescription = new JLabel(); |
|
117 |
lblResourceDescription.setText(""); |
|
118 |
lblResourceDescription.setPreferredSize(new Dimension(38, 50)); |
|
119 |
lblResourceDescription.setName("lblResourceDescription"); |
|
120 |
} |
|
121 |
return lblResourceDescription; |
|
122 |
} |
|
123 |
|
|
124 |
|
|
125 |
/** |
|
126 |
* This method initializes pButtons |
|
127 |
* |
|
128 |
* @return javax.swing.JPanel |
|
129 |
*/ |
|
130 |
private JPanel getPButtons() { |
|
131 |
if (pButtons == null) { |
|
132 |
BorderLayout borderLayout2 = new BorderLayout(); |
|
133 |
borderLayout2.setHgap(5); |
|
134 |
borderLayout2.setVgap(5); |
|
135 |
pButtons = new JPanel(); |
|
136 |
pButtons.setLayout(borderLayout2); |
|
137 |
pButtons.add(getPSelectionButtons(), BorderLayout.NORTH); |
|
138 |
pButtons.add(getPActionButtons(), BorderLayout.SOUTH); |
|
139 |
} |
|
140 |
return pButtons; |
|
141 |
} |
|
142 |
|
|
143 |
/** |
|
144 |
* This method initializes pScrollList |
|
145 |
* |
|
146 |
* @return javax.swing.JScrollPane |
|
147 |
*/ |
|
148 |
private JScrollPane getPScrollList() { |
|
149 |
if (pScrollList == null) { |
|
150 |
pScrollList = new JScrollPane(); |
|
151 |
pScrollList.setPreferredSize(new java.awt.Dimension(350,350)); |
|
152 |
pScrollList.setViewportView(getList()); |
|
153 |
} |
|
154 |
return pScrollList; |
|
155 |
} |
|
156 |
|
|
157 |
/** |
|
158 |
* This method initializes list |
|
159 |
* |
|
160 |
* @return javax.swing.JList |
|
161 |
*/ |
|
162 |
private myList getList() { |
|
163 |
if (list == null) { |
|
164 |
list = new myList(); |
|
165 |
list.setBackground(Color.white); |
|
166 |
} |
|
167 |
return list; |
|
168 |
} |
|
169 |
|
|
170 |
/** |
|
171 |
* This method initializes botSave |
|
172 |
* |
|
173 |
* @return javax.swing.JButton |
|
174 |
*/ |
|
175 |
private JButton getBotSave() { |
|
176 |
if (botSave == null) { |
|
177 |
botSave = new JButton(); |
|
178 |
botSave.setName("botSave"); |
|
179 |
botSave.setToolTipText(PluginServices.getText(this, "save_selected_resources_and_exit")); |
|
180 |
botSave.setText(PluginServices.getText(this, "ok")); |
|
181 |
botSave.setActionCommand("Accept"); |
|
182 |
botSave.addActionListener(this); |
|
183 |
} |
|
184 |
return botSave; |
|
185 |
} |
|
186 |
|
|
187 |
/** |
|
188 |
* This method initializes botDiscard |
|
189 |
* |
|
190 |
* @return javax.swing.JButton |
|
191 |
*/ |
|
192 |
private JButton getBotDiscard() { |
|
193 |
if (botDiscard == null) { |
|
194 |
botDiscard = new JButton(); |
|
195 |
botDiscard.setName("botDiscard"); |
|
196 |
botDiscard.setToolTipText(PluginServices.getText(this, "discard_changes_and_exit")); |
|
197 |
botDiscard.setText(PluginServices.getText(this, "discard_changes")); |
|
198 |
botDiscard.setActionCommand("Discard"); |
|
199 |
botDiscard.addActionListener(this); |
|
200 |
} |
|
201 |
return botDiscard; |
|
202 |
} |
|
203 |
|
|
204 |
/** |
|
205 |
* This method initializes botDontExit |
|
206 |
* |
|
207 |
* @return javax.swing.JButton |
|
208 |
*/ |
|
209 |
private JButton getBotDontExit() { |
|
210 |
if (botDontExit == null) { |
|
211 |
botDontExit = new JButton(); |
|
212 |
botDontExit.setName("botDontExit"); |
|
213 |
botDontExit.setToolTipText(PluginServices.getText(this, "cancel_the_application_termination")); |
|
214 |
botDontExit.setText(PluginServices.getText(this, "cancelar")); |
|
215 |
botDontExit.setActionCommand("Cancel"); |
|
216 |
botDontExit.addActionListener(this); |
|
217 |
} |
|
218 |
return botDontExit; |
|
219 |
} |
|
220 |
|
|
221 |
/** |
|
222 |
* This method initializes pActionButtons |
|
223 |
* |
|
224 |
* @return javax.swing.JPanel |
|
225 |
*/ |
|
226 |
private JPanel getPActionButtons() { |
|
227 |
if (pActionButtons == null) { |
|
228 |
FlowLayout flowLayout = new FlowLayout(); |
|
229 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
230 |
pActionButtons = new JPanel(); |
|
231 |
pActionButtons.setLayout(flowLayout); |
|
232 |
pActionButtons.setName("pActionButtons"); |
|
233 |
pActionButtons.add(getBotSave(), null); |
|
234 |
pActionButtons.add(getBotDiscard(), null); |
|
235 |
pActionButtons.add(getBotDontExit(), null); |
|
236 |
} |
|
237 |
return pActionButtons; |
|
238 |
} |
|
239 |
|
|
240 |
/** |
|
241 |
* This method initializes pSelectionButtons |
|
242 |
* |
|
243 |
* @return javax.swing.JPanel |
|
244 |
*/ |
|
245 |
private JPanel getPSelectionButtons() { |
|
246 |
if (pSelectionButtons == null) { |
|
247 |
FlowLayout flowLayout1 = new FlowLayout(); |
|
248 |
flowLayout1.setAlignment(FlowLayout.LEFT); |
|
249 |
pSelectionButtons = new JPanel(); |
|
250 |
pSelectionButtons.setLayout(flowLayout1); |
|
251 |
pSelectionButtons.setName("pSelectionButtons"); |
|
252 |
pSelectionButtons.add(getBotSelectAll(), null); |
|
253 |
pSelectionButtons.add(getBotDeselectAll(), null); |
|
254 |
} |
|
255 |
return pSelectionButtons; |
|
256 |
} |
|
257 |
|
|
258 |
/** |
|
259 |
* This method initializes botSelectAll |
|
260 |
* |
|
261 |
* @return javax.swing.JButton |
|
262 |
*/ |
|
263 |
private JButton getBotSelectAll() { |
|
264 |
if (botSelectAll == null) { |
|
265 |
botSelectAll = new JButton(); |
|
266 |
botSelectAll.setText(PluginServices.getText(this, "select_all")); |
|
267 |
botSelectAll.setName("botSelectAll"); |
|
268 |
botSelectAll.setToolTipText(PluginServices.getText(this, "select_all_resources")); |
|
269 |
botSelectAll.setActionCommand("SelectAll"); |
|
270 |
botSelectAll.addActionListener(this); |
|
271 |
} |
|
272 |
return botSelectAll; |
|
273 |
} |
|
274 |
|
|
275 |
/** |
|
276 |
* This method initializes botDeselectAll |
|
277 |
* |
|
278 |
* @return javax.swing.JButton |
|
279 |
*/ |
|
280 |
private JButton getBotDeselectAll() { |
|
281 |
if (botDeselectAll == null) { |
|
282 |
botDeselectAll = new JButton(); |
|
283 |
botDeselectAll.setName("botDeselectAll"); |
|
284 |
botDeselectAll.setToolTipText(PluginServices.getText(this, "deselect_all_resources")); |
|
285 |
botDeselectAll.setText(PluginServices.getText(this, "deselect_all")); |
|
286 |
botDeselectAll.setActionCommand("DeselectAll"); |
|
287 |
botDeselectAll.addActionListener(this); |
|
288 |
} |
|
289 |
return botDeselectAll; |
|
290 |
} |
|
291 |
|
|
292 |
public WindowInfo getWindowInfo() { |
|
293 |
WindowInfo wi = new WindowInfo(WindowInfo.MODALDIALOG |
|
294 |
| WindowInfo.RESIZABLE |
|
295 |
| WindowInfo.MAXIMIZABLE); |
|
296 |
wi.setTitle(windowTitle); |
|
297 |
wi.setHeight(270); |
|
298 |
wi.setWidth(450); |
|
299 |
return wi; |
|
300 |
} |
|
301 |
|
|
302 |
public void setWindowTitle(String windowTitle) { |
|
303 |
this.windowTitle = windowTitle; |
|
304 |
} |
|
305 |
|
|
306 |
public void setCancelText(String text, String tooltipText) { |
|
307 |
getBotDontExit().setToolTipText(tooltipText); |
|
308 |
getBotDontExit().setText(text); |
|
309 |
} |
|
310 |
|
|
311 |
public void setDiscardText(String text, String tooltipText) { |
|
312 |
getBotDiscard().setToolTipText(tooltipText); |
|
313 |
getBotDiscard().setText(text); |
|
314 |
} |
|
315 |
|
|
316 |
public void setAcceptText(String text, String tooltipText) { |
|
317 |
getBotSave().setToolTipText(tooltipText); |
|
318 |
getBotSave().setText(text); |
|
319 |
} |
|
320 |
|
|
321 |
public void setHeaderText(String text) { |
|
322 |
lblDescription.setText(text); |
|
323 |
} |
|
324 |
|
|
325 |
/** |
|
326 |
* Register a listener to call |
|
327 |
* |
|
328 |
* @param a UnsavedDataPanelListener instance |
|
329 |
*/ |
|
330 |
public void addActionListener(UnsavedDataPanelListener listener){ |
|
331 |
this.listeners.add(listener); |
|
332 |
} |
|
333 |
|
|
334 |
public void removeActionListener(UnsavedDataPanelListener listener){ |
|
335 |
this.listeners.remove(listener); |
|
336 |
} |
|
337 |
|
|
338 |
public class UnsavedDataPanelListener { |
|
339 |
public void cancel(UnsavedDataPanel panel){ |
|
340 |
|
|
341 |
} |
|
342 |
|
|
343 |
public void accept(UnsavedDataPanel panel){ |
|
344 |
|
|
345 |
} |
|
346 |
|
|
347 |
public void discard(UnsavedDataPanel panel) { |
|
348 |
|
|
349 |
} |
|
350 |
} |
|
351 |
|
|
352 |
private class myList extends JPanel{ |
|
353 |
|
|
354 |
/** |
|
355 |
* |
|
356 |
*/ |
|
357 |
private static final long serialVersionUID = 3179254463477354501L; |
|
358 |
|
|
359 |
private GridBagConstraints constraints; |
|
360 |
private GridBagConstraints constraintsLast; |
|
361 |
|
|
362 |
public myList(){ |
|
363 |
super(); |
|
364 |
initialize(); |
|
365 |
} |
|
366 |
|
|
367 |
private void initialize(){ |
|
368 |
this.setLayout(new GridBagLayout()); |
|
369 |
this.constraints = new GridBagConstraints(); |
|
370 |
this.constraints.fill = GridBagConstraints.HORIZONTAL; |
|
371 |
this.constraints.gridwidth = GridBagConstraints.REMAINDER; |
|
372 |
this.constraints.weightx =0; |
|
373 |
this.constraints.gridx =0; |
|
374 |
this.constraints.gridy=0; |
|
375 |
this.constraints.anchor = GridBagConstraints.WEST; |
|
376 |
this.constraints.insets =new Insets(3,3,0,0); |
|
377 |
|
|
378 |
this.constraintsLast = new GridBagConstraints(); |
|
379 |
this.constraintsLast.fill = GridBagConstraints.BOTH; |
|
380 |
this.constraintsLast.gridheight = GridBagConstraints.REMAINDER; |
|
381 |
this.constraintsLast.gridwidth = GridBagConstraints.REMAINDER; |
|
382 |
this.constraintsLast.gridx =0; |
|
383 |
this.constraintsLast.weightx =1; |
|
384 |
this.constraintsLast.weighty =1; |
|
385 |
this.constraintsLast.anchor = GridBagConstraints.FIRST_LINE_START; |
|
386 |
|
|
387 |
|
|
388 |
} |
|
389 |
|
|
390 |
public void addItems(IUnsavedData[] itemList){ |
|
391 |
int i; |
|
392 |
this.removeAll(); |
|
393 |
if (itemList.length == 0){ |
|
394 |
return; |
|
395 |
} |
|
396 |
|
|
397 |
for (i=0;i< itemList.length;i++){ |
|
398 |
this.constraints.gridy = i; |
|
399 |
this.add(newItem(itemList[i]), this.constraints); |
|
400 |
} |
|
401 |
this.constraintsLast.gridy=itemList.length; |
|
402 |
this.add(new JLabel(),this.constraintsLast); |
|
403 |
|
|
404 |
} |
|
405 |
public int getItemsCount(){ |
|
406 |
return this.getComponentCount() -1; |
|
407 |
} |
|
408 |
|
|
409 |
public myUnsavedItem getItem(int i){ |
|
410 |
if (i>= this.getComponentCount()){ |
|
411 |
return null; |
|
412 |
} |
|
413 |
return (myUnsavedItem)this.getComponent(i); |
|
414 |
} |
|
415 |
|
|
416 |
private myUnsavedItem newItem(IUnsavedData itemData){ |
|
417 |
myUnsavedItem item; |
|
418 |
item = new myUnsavedItem(itemData); |
|
419 |
item.addMouseListener(new MouseListener(){ |
|
420 |
public void mouseClicked(MouseEvent e) { |
|
421 |
myUnsavedItem item = (myUnsavedItem)e.getComponent(); |
|
422 |
getLblResourceDescription().setText(item.getDescription()); |
|
423 |
} |
|
424 |
public void mouseEntered(MouseEvent e) { |
|
425 |
} |
|
426 |
|
|
427 |
public void mouseExited(MouseEvent e) { |
|
428 |
} |
|
429 |
|
|
430 |
public void mousePressed(MouseEvent e) { |
|
431 |
} |
|
432 |
|
|
433 |
public void mouseReleased(MouseEvent e) { |
|
434 |
} |
|
435 |
|
|
436 |
}); |
|
437 |
return item; |
|
438 |
} |
|
439 |
|
|
440 |
} |
|
441 |
|
|
442 |
private class myUnsavedItem extends JPanel{ |
|
443 |
/** |
|
444 |
* |
|
445 |
*/ |
|
446 |
private static final long serialVersionUID = -6280057775368437349L; |
|
447 |
private JCheckBox chkChecked; |
|
448 |
private JLabel lblText; |
|
449 |
private IUnsavedData dataItem; |
|
450 |
|
|
451 |
public myUnsavedItem(IUnsavedData dataItem ){ |
|
452 |
super(); |
|
453 |
this.initialize(); |
|
454 |
this.setData(dataItem); |
|
455 |
} |
|
456 |
|
|
457 |
private void initialize(){ |
|
458 |
this.setOpaque(false); |
|
459 |
BorderLayout layout = new BorderLayout(); |
|
460 |
layout.setHgap(5); |
|
461 |
this.setLayout(layout); |
|
462 |
this.add(this.getChkChecked(),BorderLayout.WEST); |
|
463 |
this.add(this.getLblText(),BorderLayout.CENTER); |
|
464 |
} |
|
465 |
|
|
466 |
private JLabel getLblText() { |
|
467 |
if (lblText == null){ |
|
468 |
lblText = new JLabel(); |
|
469 |
lblText.setName("lblText"); |
|
470 |
} |
|
471 |
return lblText; |
|
472 |
} |
|
473 |
|
|
474 |
private JCheckBox getChkChecked() { |
|
475 |
if (chkChecked == null){ |
|
476 |
chkChecked = new JCheckBox(); |
|
477 |
chkChecked.setName("chkChecked"); |
|
478 |
chkChecked.setSelected(true); |
|
479 |
chkChecked.setOpaque(false); |
|
480 |
} |
|
481 |
return chkChecked; |
|
482 |
} |
|
483 |
|
|
484 |
public boolean isSelected(){ |
|
485 |
return getChkChecked().isSelected(); |
|
486 |
} |
|
487 |
|
|
488 |
public void setSelected(boolean selected){ |
|
489 |
getChkChecked().setSelected(selected); |
|
490 |
} |
|
491 |
|
|
492 |
public void setData(IUnsavedData dataItem){ |
|
493 |
this.dataItem = dataItem; |
|
494 |
JLabel lbl = getLblText(); |
|
495 |
if (dataItem.getIcon() != null){ |
|
496 |
lbl.setIcon((ImageIcon) PluginServices.getIconTheme().get(dataItem.getIcon())); |
|
497 |
} else{ |
|
498 |
lbl.setIcon(getBlanckIcon()); |
|
499 |
} |
|
500 |
lbl.setText(dataItem.getResourceName()); |
|
501 |
getChkChecked().setSelected(true); |
|
502 |
} |
|
503 |
|
|
504 |
public IUnsavedData getData(){ |
|
505 |
return this.dataItem; |
|
506 |
} |
|
507 |
|
|
508 |
public String getDescription(){ |
|
509 |
return this.dataItem.getDescription(); |
|
510 |
} |
|
511 |
|
|
512 |
private ImageIcon getBlanckIcon(){ |
|
513 |
if (blanckIcon== null){ |
|
514 |
BufferedImage buff =new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB); |
|
515 |
blanckIcon = new ImageIcon(buff); |
|
516 |
} |
|
517 |
return blanckIcon; |
|
518 |
} |
|
519 |
|
|
520 |
} |
|
521 |
|
|
522 |
public void actionPerformed(ActionEvent e) { |
|
523 |
if (e.getActionCommand() == "Cancel"){ |
|
524 |
fireDontExitEvent(); |
|
525 |
return; |
|
526 |
} |
|
527 |
if (e.getActionCommand() == "Accept"){ |
|
528 |
fireAcceptEvent(); |
|
529 |
return; |
|
530 |
} |
|
531 |
if (e.getActionCommand() == "Discard") { |
|
532 |
fireDiscardEvent(); |
|
533 |
return; |
|
534 |
} |
|
535 |
if (e.getActionCommand() == "SelectAll"){ |
|
536 |
selectAll(); |
|
537 |
return; |
|
538 |
} |
|
539 |
if (e.getActionCommand() == "DeselectAll"){ |
|
540 |
deselectAll(); |
|
541 |
return; |
|
542 |
} |
|
543 |
} |
|
544 |
|
|
545 |
public void close(){ |
|
546 |
PluginServices.getMDIManager().closeWindow(this); |
|
547 |
|
|
548 |
} |
|
549 |
|
|
550 |
private void fireAcceptEvent() { |
|
551 |
Iterator iter = this.listeners.iterator(); |
|
552 |
while (iter.hasNext()){ |
|
553 |
((UnsavedDataPanelListener)iter.next()).accept(this); |
|
554 |
} |
|
555 |
} |
|
556 |
|
|
557 |
private void fireDiscardEvent() { |
|
558 |
Iterator iter = this.listeners.iterator(); |
|
559 |
while (iter.hasNext()){ |
|
560 |
((UnsavedDataPanelListener)iter.next()).discard(this); |
|
561 |
} |
|
562 |
} |
|
563 |
|
|
564 |
private void fireDontExitEvent() { |
|
565 |
Iterator iter = this.listeners.iterator(); |
|
566 |
while (iter.hasNext()){ |
|
567 |
((UnsavedDataPanelListener)iter.next()).cancel(this); |
|
568 |
} |
|
569 |
} |
|
570 |
|
|
571 |
private void setSelectedsAll( boolean selected){ |
|
572 |
int i; |
|
573 |
myList theList = getList(); |
|
574 |
myUnsavedItem item; |
|
575 |
for (i=0;i < theList.getItemsCount();i++){ |
|
576 |
item = (myUnsavedItem)theList.getItem(i); |
|
577 |
item.setSelected(selected); |
|
578 |
} |
|
579 |
theList.doLayout(); |
|
580 |
} |
|
581 |
|
|
582 |
public void deselectAll() { |
|
583 |
this.setSelectedsAll(false); |
|
584 |
} |
|
585 |
|
|
586 |
public void selectAll() { |
|
587 |
this.setSelectedsAll(true); |
|
588 |
} |
|
589 |
|
|
590 |
|
|
591 |
/** |
|
592 |
* Set the resorces to ask for |
|
593 |
* |
|
594 |
* @param IUnsavedData[] resources pending to save |
|
595 |
*/ |
|
596 |
public void setUnsavedDataArray(IUnsavedData[] unsavedDatalist){ |
|
597 |
this.unsavedDataList = unsavedDatalist; |
|
598 |
myList theList = getList(); |
|
599 |
|
|
600 |
theList.addItems(unsavedDatalist); |
|
601 |
theList.validate(); |
|
602 |
|
|
603 |
} |
|
604 |
|
|
605 |
|
|
606 |
private IUnsavedData[] getUnsavedData(boolean selected){ |
|
607 |
int i; |
|
608 |
myList theList = getList(); |
|
609 |
ArrayList aList = new ArrayList(); |
|
610 |
myUnsavedItem item; |
|
611 |
IUnsavedData[] result; |
|
612 |
|
|
613 |
for (i=0;i < theList.getItemsCount();i++){ |
|
614 |
item = (myUnsavedItem)theList.getItem(i); |
|
615 |
if (item.isSelected() == selected){ |
|
616 |
aList.add(item.getData()); |
|
617 |
} |
|
618 |
} |
|
619 |
result = new IUnsavedData[aList.size()]; |
|
620 |
System.arraycopy(aList.toArray(), 0, result, 0, aList.size()); |
|
621 |
return result; |
|
622 |
} |
|
623 |
|
|
624 |
|
|
625 |
/** |
|
626 |
* Returns the IUnsavedData selecteds for the user to save |
|
627 |
* |
|
628 |
* @return IUnsaveData[] to save |
|
629 |
*/ |
|
630 |
public IUnsavedData[] getSelectedsUnsavedData(){ |
|
631 |
return this.getUnsavedData(true); |
|
632 |
|
|
633 |
} |
|
634 |
|
|
635 |
/** |
|
636 |
* Returns the IUnsavedData not selecteds for the user |
|
637 |
* |
|
638 |
* @return IUnsavedData[] to ignore |
|
639 |
*/ |
|
640 |
public IUnsavedData[] getUnselectedsUnsavedData(){ |
Also available in: Unified diff