Revision 39374
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<libraries library-dir="lib"/> |
|
4 |
<depends plugin-name="org.gvsig.app" /> |
|
5 |
<resourceBundle name="text"/> |
|
6 |
<extensions> |
|
7 |
<extension class-name="org.gvsig.app.extension.TableExtension" |
|
8 |
description="Extensi?n encargada de a?adir soporte a documentos tabla." |
|
9 |
active="true" |
|
10 |
priority="10"> |
|
11 |
</extension> |
|
12 |
|
|
13 |
<extension class-name="org.gvsig.app.extension.ClearSelectionExtension" |
|
14 |
description="Extensi?n encargada de limpiar la selecci?n." |
|
15 |
active="true"> |
|
16 |
|
|
17 |
<action |
|
18 |
name="selection-clear-table" |
|
19 |
label="_Clear_selection" |
|
20 |
tooltip="_Clear_selection" |
|
21 |
position="300300000" |
|
22 |
action-command="selection-clear-table" |
|
23 |
icon="selection-clear" |
|
24 |
accelerator="" |
|
25 |
/> |
|
26 |
|
|
27 |
<menu |
|
28 |
name="selection-clear-table" |
|
29 |
text="Selection/_Clear" |
|
30 |
/> |
|
31 |
|
|
32 |
<tool-bar name="view_selection"> |
|
33 |
<action-tool |
|
34 |
name="selection-clear-table" |
|
35 |
/> |
|
36 |
</tool-bar> |
|
37 |
</extension> |
|
38 |
|
|
39 |
<extension class-name="org.gvsig.app.extension.ShowTable" |
|
40 |
description="Extensi?n encargada de abrir la tabla asociada a la capa seleccionado." |
|
41 |
active="true"> |
|
42 |
|
|
43 |
<action |
|
44 |
name="layer-show-attributes-table" |
|
45 |
label="_Attributes_table" |
|
46 |
tooltip="_Show_attributes_table" |
|
47 |
position="601200000" |
|
48 |
action-command="layer-show-attributes-table" |
|
49 |
icon="layer-show-attributes-table" |
|
50 |
accelerator="" |
|
51 |
/> |
|
52 |
|
|
53 |
<menu |
|
54 |
name="layer-show-attributes-table" |
|
55 |
text="Layer/_Show_attributes_table" |
|
56 |
/> |
|
57 |
|
|
58 |
<tool-bar name="view_actions"> |
|
59 |
<action-tool |
|
60 |
name="layer-show-attributes-table" |
|
61 |
/> |
|
62 |
</tool-bar> |
|
63 |
</extension> |
|
64 |
|
|
65 |
<extension class-name="org.gvsig.app.extension.TableOperations" |
|
66 |
description="Extensi?n encargada de gestionar las operaciones sobre las tablas." |
|
67 |
active="true"> |
|
68 |
|
|
69 |
<action |
|
70 |
name="table-create-link" |
|
71 |
label="_Create_link" |
|
72 |
tooltip="_Create_link_between_tables" |
|
73 |
position="501300000" |
|
74 |
action-command="table-create-link" |
|
75 |
icon="table-create-link" |
|
76 |
accelerator="" |
|
77 |
/> |
|
78 |
|
|
79 |
<menu |
|
80 |
name="table-create-link" |
|
81 |
text="Table/_Create_link" |
|
82 |
/> |
|
83 |
|
|
84 |
<tool-bar name="table_tools"> |
|
85 |
<action-tool |
|
86 |
name="table-create-link" |
|
87 |
/> |
|
88 |
</tool-bar> |
|
89 |
</extension> |
|
90 |
|
|
91 |
<extension class-name="org.gvsig.app.extension.RedoTableExtension" |
|
92 |
description="Extensi?n encargada de rehacer la edici?n sobre la capa activa." |
|
93 |
active="true"> |
|
94 |
|
|
95 |
<action |
|
96 |
name="edit-redo-table" |
|
97 |
label="_Redo" |
|
98 |
tooltip="_Redo" |
|
99 |
position="0200200000" |
|
100 |
action-command="edit-redo-table" |
|
101 |
icon="edit-redo" |
|
102 |
accelerator="" |
|
103 |
/> |
|
104 |
|
|
105 |
<menu |
|
106 |
name="edit-redo-table" |
|
107 |
text="Edit/_Redo" |
|
108 |
/> |
|
109 |
|
|
110 |
<tool-bar name="edit_actions"> |
|
111 |
<action-tool |
|
112 |
name="edit-redo-table" |
|
113 |
/> |
|
114 |
</tool-bar> |
|
115 |
</extension> |
|
116 |
|
|
117 |
<extension class-name="org.gvsig.app.extension.UndoTableExtension" |
|
118 |
description="Extensi?n encargada de dehacer la edici?n sobre la capa activa." |
|
119 |
active="true"> |
|
120 |
|
|
121 |
<action |
|
122 |
name="edit-undo-table" |
|
123 |
label="_Undo" |
|
124 |
tooltip="_Undo" |
|
125 |
position="0200100000" |
|
126 |
action-command="edit-undo-table" |
|
127 |
icon="edit-undo" |
|
128 |
accelerator="" |
|
129 |
/> |
|
130 |
|
|
131 |
<menu |
|
132 |
name="edit-undo-table" |
|
133 |
text="Edit/_Undo" |
|
134 |
/> |
|
135 |
|
|
136 |
<tool-bar name="edit_actions"> |
|
137 |
<action-tool |
|
138 |
name="edit-undo-table" |
|
139 |
/> |
|
140 |
</tool-bar> |
|
141 |
</extension> |
|
142 |
|
|
143 |
<extension class-name="org.gvsig.app.extension.TableEditStopExtension" |
|
144 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
145 |
active="true"> |
|
146 |
|
|
147 |
<action |
|
148 |
name="table-stop-editing" |
|
149 |
label="_Stop_editing" |
|
150 |
tooltip="_Stop_editing" |
|
151 |
position="500300000" |
|
152 |
action-command="table-stop-editing" |
|
153 |
icon="table-stop-editing" |
|
154 |
accelerator="" |
|
155 |
/> |
|
156 |
|
|
157 |
<menu |
|
158 |
name="table-stop-editing" |
|
159 |
text="Table/_Stop_editing" |
|
160 |
/> |
|
161 |
|
|
162 |
<tool-bar name="table_actions"> |
|
163 |
<action-tool |
|
164 |
name="table-stop-editing" |
|
165 |
/> |
|
166 |
</tool-bar> |
|
167 |
</extension> |
|
168 |
<extension class-name="org.gvsig.app.extension.TableEditStartExtension" |
|
169 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
170 |
active="true"> |
|
171 |
|
|
172 |
<action |
|
173 |
name="table-start-editing" |
|
174 |
label="_Start_editing" |
|
175 |
tooltip="_Start_editing" |
|
176 |
position="500200000" |
|
177 |
action-command="table-start-editing" |
|
178 |
icon="table-start-editing" |
|
179 |
accelerator="" |
|
180 |
/> |
|
181 |
|
|
182 |
<menu |
|
183 |
name="table-start-editing" |
|
184 |
text="Table/_Start_editing" |
|
185 |
/> |
|
186 |
|
|
187 |
<tool-bar name="table_actions"> |
|
188 |
<action-tool |
|
189 |
name="table-start-editing" |
|
190 |
/> |
|
191 |
</tool-bar> |
|
192 |
</extension> |
|
193 |
|
|
194 |
<extension class-name="org.gvsig.app.extension.TableEditInsertExtension" |
|
195 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
196 |
active="true"> |
|
197 |
<action |
|
198 |
name="table-add-row" |
|
199 |
label="_Add_row" |
|
200 |
tooltip="_Add_row" |
|
201 |
position="500500000" |
|
202 |
action-command="table-add-row" |
|
203 |
icon="table-add-row" |
|
204 |
accelerator="" |
|
205 |
/> |
|
206 |
|
|
207 |
<menu |
|
208 |
name="table-add-row" |
|
209 |
text="Table/_Add_row" |
|
210 |
/> |
|
211 |
|
|
212 |
<tool-bar name="table_actions"> |
|
213 |
<action-tool |
|
214 |
name="table-add-row" |
|
215 |
/> |
|
216 |
</tool-bar> |
|
217 |
</extension> |
|
218 |
|
|
219 |
<extension class-name="org.gvsig.app.extension.TableEditRemoveRowExtension" |
|
220 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
221 |
active="true"> |
|
222 |
|
|
223 |
<action |
|
224 |
name="table-remove-row" |
|
225 |
label="_Remove_row" |
|
226 |
tooltip="_Remove_row" |
|
227 |
position="500600000" |
|
228 |
action-command="table-remove-row" |
|
229 |
icon="table-remove-row" |
|
230 |
accelerator="" |
|
231 |
/> |
|
232 |
|
|
233 |
<menu |
|
234 |
name="table-remove-row" |
|
235 |
text="Table/_Remove_row" |
|
236 |
/> |
|
237 |
|
|
238 |
<tool-bar name="table_actions"> |
|
239 |
<action-tool |
|
240 |
name="table-remove-row" |
|
241 |
/> |
|
242 |
</tool-bar> |
|
243 |
</extension> |
|
244 |
<extension class-name="org.gvsig.app.extension.TableEditChangeColumnsExtension" |
|
245 |
description="Extensi?n encargada de gestionar las operaciones de edici?n de columnas sobre las tablas." |
|
246 |
active="true"> |
|
247 |
|
|
248 |
<action |
|
249 |
name="table-add-column" |
|
250 |
label="_Add_column" |
|
251 |
tooltip="_Add_column" |
|
252 |
position="500630000" |
|
253 |
action-command="table-add-column" |
|
254 |
icon="table-add-column" |
|
255 |
accelerator="" |
|
256 |
/> |
|
257 |
|
|
258 |
<action |
|
259 |
name="table-rename-column" |
|
260 |
label="_Rename_column" |
|
261 |
tooltip="_Rename_column" |
|
262 |
position="500650000" |
|
263 |
action-command="table-rename-column" |
|
264 |
icon="table-rename-column" |
|
265 |
accelerator="" |
|
266 |
/> |
|
267 |
|
|
268 |
<action |
|
269 |
name="table-remove-column" |
|
270 |
label="_Remove_column" |
|
271 |
tooltip="_Remove_column" |
|
272 |
position="500670000" |
|
273 |
action-command="table-remove-column" |
|
274 |
icon="table-remove-column" |
|
275 |
accelerator="" |
|
276 |
/> |
|
277 |
|
|
278 |
<menu |
|
279 |
name="table-add-column" |
|
280 |
text="Table/_Add_column" |
|
281 |
/> |
|
282 |
|
|
283 |
<menu |
|
284 |
name="table-remove-column" |
|
285 |
text="Table/_Remove_column" |
|
286 |
/> |
|
287 |
|
|
288 |
<menu |
|
289 |
name="table-rename-column" |
|
290 |
text="Table/_Rename_column" |
|
291 |
/> |
|
292 |
|
|
293 |
<tool-bar name="table_actions"> |
|
294 |
<action-tool |
|
295 |
name="table-add-column" |
|
296 |
/> |
|
297 |
<action-tool |
|
298 |
name="table-remove-column" |
|
299 |
/> |
|
300 |
<action-tool |
|
301 |
name="table-rename-column" |
|
302 |
/> |
|
303 |
</tool-bar> |
|
304 |
|
|
305 |
</extension> |
|
306 |
<extension class-name="org.gvsig.app.extension.TableEditAttributes" |
|
307 |
description="Extensi?n encargada de gestionar los campos de las tablas." |
|
308 |
active="true"> |
|
309 |
<action |
|
310 |
name="table-column-manager" |
|
311 |
label="_Column_manager" |
|
312 |
tooltip="_Column_manager" |
|
313 |
position="0500700000" |
|
314 |
action-command="table-column-manager" |
|
315 |
icon="table-column-manager" |
|
316 |
accelerator="" |
|
317 |
/> |
|
318 |
|
|
319 |
<menu |
|
320 |
name="table-column-manager" |
|
321 |
text="Table/_Column_manager" |
|
322 |
/> |
|
323 |
|
|
324 |
<tool-bar name="table_actions"> |
|
325 |
<action-tool |
|
326 |
name="table-column-manager" |
|
327 |
/> |
|
328 |
</tool-bar> |
|
329 |
</extension> |
|
330 |
|
|
331 |
<extension class-name="org.gvsig.app.extension.TableEditCopyExtension" |
|
332 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
333 |
active="true"> |
|
334 |
<action |
|
335 |
name="edit-copy-table" |
|
336 |
label="_Copy" |
|
337 |
tooltip="_Copy" |
|
338 |
position="200500000" |
|
339 |
action-command="edit-copy-table" |
|
340 |
icon="edit-copy" |
|
341 |
accelerator="" |
|
342 |
/> |
|
343 |
|
|
344 |
<menu |
|
345 |
name="edit-copy-table" |
|
346 |
text="Edit/_Copy" |
|
347 |
/> |
|
348 |
|
|
349 |
<tool-bar name="edit_actions"> |
|
350 |
<action-tool |
|
351 |
name="edit-copy-table" |
|
352 |
/> |
|
353 |
</tool-bar> |
|
354 |
</extension> |
|
355 |
|
|
356 |
<extension class-name="org.gvsig.app.extension.TableEditCutExtension" |
|
357 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
358 |
active="true"> |
|
359 |
<action |
|
360 |
name="edit-cut-table" |
|
361 |
label="_Cut_table" |
|
362 |
tooltip="_Cut_table_in_editing" |
|
363 |
position="200400000" |
|
364 |
action-command="edit-cut-table" |
|
365 |
icon="edit-cut" |
|
366 |
accelerator="" |
|
367 |
/> |
|
368 |
|
|
369 |
<menu |
|
370 |
name="edit-cut-table" |
|
371 |
text="Edit/_Cut" |
|
372 |
/> |
|
373 |
|
|
374 |
<tool-bar name="edit_actions"> |
|
375 |
<action-tool |
|
376 |
name="edit-cut-table" |
|
377 |
/> |
|
378 |
</tool-bar> |
|
379 |
</extension> |
|
380 |
|
|
381 |
<extension class-name="org.gvsig.app.extension.TableEditPasteExtension" |
|
382 |
description="Extensi?n encargada de gestionar las operaciones de edici?n sobre las tablas." |
|
383 |
active="true"> |
|
384 |
<action |
|
385 |
name="edit-paste-table" |
|
386 |
label="_Paste" |
|
387 |
tooltip="_Paste" |
|
388 |
position="200600000" |
|
389 |
action-command="edit-paste-table" |
|
390 |
icon="edit-paste" |
|
391 |
accelerator="" |
|
392 |
/> |
|
393 |
|
|
394 |
<menu |
|
395 |
name="edit-paste-table" |
|
396 |
text="Edit/_Paste" |
|
397 |
/> |
|
398 |
|
|
399 |
<tool-bar name="edit_actions"> |
|
400 |
<action-tool |
|
401 |
name="edit-paste-table" |
|
402 |
/> |
|
403 |
</tool-bar> |
|
404 |
</extension> |
|
405 |
|
|
406 |
<extension active="true" class-name="org.gvsig.app.extension.TableFieldOperations" |
|
407 |
description="Operaciones sobre los campos de las tablas"> |
|
408 |
<action |
|
409 |
name="table-order-asc" |
|
410 |
label="_Order_ascending" |
|
411 |
tooltip="_Order_ascending" |
|
412 |
position="500900000" |
|
413 |
action-command="table-order-asc" |
|
414 |
icon="table-order-asc" |
|
415 |
accelerator="" |
|
416 |
/> |
|
417 |
|
|
418 |
<action |
|
419 |
name="table-order-desc" |
|
420 |
label="_Order_descending" |
|
421 |
tooltip="_Order_descending" |
|
422 |
position="501000000" |
|
423 |
action-command="table-order-desc" |
|
424 |
icon="table-order-desc" |
|
425 |
accelerator="" |
|
426 |
/> |
|
427 |
|
|
428 |
<menu |
|
429 |
name="table-order-asc" |
|
430 |
text="Table/_Order_ascending" |
|
431 |
/> |
|
432 |
|
|
433 |
<menu |
|
434 |
name="table-order-desc" |
|
435 |
text="Table/_Order_descending" |
|
436 |
/> |
|
437 |
|
|
438 |
<tool-bar name="table_actions"> |
|
439 |
<action-tool |
|
440 |
name="table-order-asc" |
|
441 |
/> |
|
442 |
<action-tool |
|
443 |
name="table-order-desc" |
|
444 |
/> |
|
445 |
</tool-bar> |
|
446 |
</extension> |
|
447 |
|
|
448 |
<extension class-name="org.gvsig.app.extension.TableNumericFieldOperations" |
|
449 |
description="Extensi?n encargada de gestionar las operaciones sobre los campos num?ricos." |
|
450 |
active="true"> |
|
451 |
<action |
|
452 |
name="table-statistics" |
|
453 |
label="_Statistics" |
|
454 |
tooltip="_Statistics" |
|
455 |
position="508000000" |
|
456 |
action-command="table-statistics" |
|
457 |
icon="table-statistics" |
|
458 |
accelerator="" |
|
459 |
/> |
|
460 |
|
|
461 |
<menu |
|
462 |
name="table-statistics" |
|
463 |
text="Table/_Statistics" |
|
464 |
/> |
|
465 |
|
|
466 |
<tool-bar name="table_actions"> |
|
467 |
<action-tool |
|
468 |
name="table-statistics" |
|
469 |
/> |
|
470 |
</tool-bar> |
|
471 |
</extension> |
|
472 |
|
|
473 |
<extension class-name="org.gvsig.app.extension.TableRowsOperations" |
|
474 |
description="Extensi?n encargada de gestionar la selecci?n en la tabla." |
|
475 |
active="true"> |
|
476 |
<action |
|
477 |
name="selection-move-up" |
|
478 |
label="_Move_up_selection" |
|
479 |
tooltip="_Move_up_selection" |
|
480 |
position="300600000" |
|
481 |
action-command="selection-move-up" |
|
482 |
icon="selection-move-up" |
|
483 |
accelerator="" |
|
484 |
/> |
|
485 |
|
|
486 |
<action |
|
487 |
name="selection-reverse" |
|
488 |
label="_Reverse_selection" |
|
489 |
tooltip="_Reverse_selection" |
|
490 |
position="300500000" |
|
491 |
action-command="selection-reverse" |
|
492 |
icon="selection-reverse" |
|
493 |
accelerator="" |
|
494 |
/> |
|
495 |
|
|
496 |
<menu |
|
497 |
name="selection-move-up" |
|
498 |
text="Selection/_Move_up" |
|
499 |
/> |
|
500 |
|
|
501 |
<menu |
|
502 |
name="selection-reverse" |
|
503 |
text="Selection/_Reverse" |
|
504 |
/> |
|
505 |
|
|
506 |
<tool-bar name="selection_actions"> |
|
507 |
<action-tool |
|
508 |
name="selection-move-up" |
|
509 |
/> |
|
510 |
<action-tool |
|
511 |
name="selection-reverse" |
|
512 |
/> |
|
513 |
</tool-bar> |
|
514 |
</extension> |
|
515 |
|
|
516 |
<extension class-name="org.gvsig.app.extension.RemoveTableLink" |
|
517 |
description="Extensi?n encargada de quitar los enlaces de las tablas." |
|
518 |
active="true"> |
|
519 |
<action |
|
520 |
name="table-remove-link" |
|
521 |
label="_Remove_link" |
|
522 |
tooltip="_Remove_link" |
|
523 |
position="501400000" |
|
524 |
action-command="table-remove-link" |
|
525 |
icon="table-remove-link" |
|
526 |
accelerator="" |
|
527 |
/> |
|
528 |
|
|
529 |
<menu |
|
530 |
name="table-remove-link" |
|
531 |
text="Table/_Remove_link" |
|
532 |
/> |
|
533 |
|
|
534 |
<tool-bar name="table_actions"> |
|
535 |
<action-tool |
|
536 |
name="table-remove-link" |
|
537 |
/> |
|
538 |
</tool-bar> |
|
539 |
</extension> |
|
540 |
|
|
541 |
<extension class-name="org.gvsig.app.extension.PrintTable" |
|
542 |
description="Extensi?n encargada de la impresi?n de las tablas." |
|
543 |
active="true"> |
|
544 |
<action |
|
545 |
name="application-print-table" |
|
546 |
label="_Print_table" |
|
547 |
tooltip="_Print_table" |
|
548 |
position="100800000" |
|
549 |
action-command="application-print-table" |
|
550 |
icon="document-print" |
|
551 |
accelerator="" |
|
552 |
/> |
|
553 |
|
|
554 |
<menu |
|
555 |
name="application-print-table" |
|
556 |
text="File/_Print" |
|
557 |
/> |
|
558 |
|
|
559 |
<tool-bar name="table_actions"> |
|
560 |
<action-tool |
|
561 |
name="application-print-table" |
|
562 |
/> |
|
563 |
</tool-bar> |
|
564 |
</extension> |
|
565 |
|
|
566 |
<extension class-name="org.gvsig.app.extension.ZoomToSelectExtension" |
|
567 |
description="Extensi?n encargada de gestionar los eventos realizados sobre una capa." |
|
568 |
active="true"> |
|
569 |
<action |
|
570 |
name="view-navigation-zoom-to-selection-table" |
|
571 |
label="Zoom_to_selection" |
|
572 |
tooltip="Zoom_to_selection" |
|
573 |
position="650100900" |
|
574 |
action-command="view-navigation-zoom-to-selection-table" |
|
575 |
icon="view-navigation-zoom-to-selection" |
|
576 |
accelerator="" |
|
577 |
/> |
|
578 |
|
|
579 |
<menu |
|
580 |
name="view-navigation-zoom-to-selection-table" |
|
581 |
text="View/Navigation/Zoom_to_selection" |
|
582 |
/> |
|
583 |
|
|
584 |
<tool-bar name="view_navigation"> |
|
585 |
<action-tool |
|
586 |
name="view-navigation-zoom-to-selection-table" |
|
587 |
/> |
|
588 |
</tool-bar> |
|
589 |
</extension> |
|
590 |
|
|
591 |
<extension class-name="org.gvsig.app.extension.FiltroExtension" |
|
592 |
description="Extensi?n encargada de abrir el di?logo para filtrar una tabla." |
|
593 |
active="true"> |
|
594 |
<action |
|
595 |
name="table-filter" |
|
596 |
label="_Filter" |
|
597 |
tooltip="_Filter_table" |
|
598 |
position="500100000" |
|
599 |
action-command="table-filter" |
|
600 |
icon="table-filter" |
|
601 |
accelerator="" |
|
602 |
/> |
|
603 |
|
|
604 |
<menu |
|
605 |
name="table-filter" |
|
606 |
text="Table/_Filter" |
|
607 |
/> |
|
608 |
|
|
609 |
<tool-bar name="table_actions"> |
|
610 |
<action-tool |
|
611 |
name="table-filter" |
|
612 |
/> |
|
613 |
</tool-bar> |
|
614 |
</extension> |
|
615 |
|
|
616 |
</extensions> |
|
617 |
<icon src="gvsig-logo-icon" text="gvSIG"/> |
|
618 |
</plugin-config> |
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/text.properties | ||
---|---|---|
1 |
_Guardar=Guardar |
|
2 |
_Save_changes_performed=Guardar los cambios realizados. |
|
3 |
_Descartar=Descartar |
|
4 |
_Discard_and_lose_changes=Descartar y perder los cambios realizados. |
|
5 |
_Continuar=Continuar |
|
6 |
_Do_not_save_yet_Stay_in_editing_mode=No guardar a?n. Continuar en edici?n. |
|
7 |
_Attributes_table=Tabla de atributos |
|
8 |
_Show_attributes_table=Mostrar tabla de atributos |
|
9 |
_Cut_table=Cortar tabla |
|
10 |
_Cut_table_in_editing=Cortar tabla en edici?n |
|
11 |
_Print_table=Imprimir tabla |
|
12 |
_Start_editing=Comenzar edici?n |
|
13 |
_Stop_editing=Terminar edici?n |
|
14 |
_Create_link_between_tables=Enlazar tablas |
|
15 |
_Unable_to_rename_attribute=No se pudo renombrar el campo |
|
16 |
_Please_insert_new_field_name_Cannot_be_undone=Introduzca nuevo nombre de campo.\nAtenci?n: tras este cambio, se cerrar? la edici?n consolidando los cambios. |
|
17 |
_Create_link=Enlazar |
|
18 |
_Order_ascending=Ordenar ascendente |
|
19 |
_Order_descending=Ordenar descendente |
|
20 |
_Move_up=Mover arriba |
|
21 |
_Print=Imprimir |
|
22 |
Table=Tabla |
|
23 |
_Reverse=Invertir |
|
24 |
_Statistics=Estad?sticas |
|
25 |
_Cut=Cortar |
|
26 |
_Paste=Pegar |
|
27 |
_Rename_column=Renombrar columna |
|
28 |
_Add_column=A?adir columna |
|
29 |
_Remove_column=Eliminar columna |
|
30 |
_Add_row=A?adir fila |
|
31 |
_Remove_row=Eliminar fila |
|
32 |
_Remove_link=Eliminar enlace |
|
33 |
_Filter_table=Filtrar tabla |
|
34 |
_Filter=Filtrar |
|
35 |
_Clear_selection=Deseleccionar todo |
|
36 |
_Column_manager=Gestor de columnas |
|
37 |
_Move_up_selection=Mover arriba la selecci?n |
|
38 |
_Unable_to_rename_field=No se pudo renombrar el campo |
|
39 |
_These_sources_were_not_loaded=Estos tipos de or?genes de datos no fueron cargados |
|
40 |
_Load_error=Problemas en la carga |
|
41 |
|
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/resources/text_en.properties | ||
---|---|---|
1 |
_Guardar=Save |
|
2 |
_Save_changes_performed=Save edits performed in layer. |
|
3 |
_Descartar=Discard |
|
4 |
_Discard_and_lose_changes=Discard and lose edits performed. |
|
5 |
_Continuar=Continue |
|
6 |
_Do_not_save_yet_Stay_in_editing_mode=Do not save yet. Continue editing. |
|
7 |
_Attributes_table=Attributes table |
|
8 |
_Show_attributes_table=Show attributes table |
|
9 |
_Cut_table=Cut table |
|
10 |
_Cut_table_in_editing=Cut current table |
|
11 |
_Print_table=Print table |
|
12 |
_Start_editing=Start editing |
|
13 |
_Stop_editing=Stop editing |
|
14 |
_Create_link_between_tables=Create link between tables |
|
15 |
_Unable_to_rename_attribute=Unable to rename attribute |
|
16 |
_Please_insert_new_field_name_Cannot_be_undone=Please insert new field name.\nWarning: after this change, editing mode will be closed and changes will be consolidated. |
|
17 |
_Create_link=Create link |
|
18 |
_Order_ascending=Sort ascending |
|
19 |
_Order_descending=Sort descending |
|
20 |
_Move_up=Move up |
|
21 |
_Print=Print |
|
22 |
Table=Table |
|
23 |
_Reverse=Reverse |
|
24 |
_Statistics=Statistics |
|
25 |
_Cut=Cut |
|
26 |
_Paste=Paste |
|
27 |
_Rename_column=Rename column |
|
28 |
_Add_column=Add column |
|
29 |
_Remove_column=Remove column |
|
30 |
_Add_row=Add row |
|
31 |
_Remove_row=Remove row |
|
32 |
_Remove_link=Remove link |
|
33 |
_Filter_table=Filter table |
|
34 |
_Filter=Filter |
|
35 |
_Clear_selection=Clear selection |
|
36 |
_Column_manager=Column manager |
|
37 |
_Move_up_selection=Move up selection |
|
38 |
_Unable_to_rename_field=Unable to rename field |
|
39 |
_These_sources_were_not_loaded=These data source types were not loaded |
|
40 |
_Load_error=Loading error |
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/gui/Statistics.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.app.project.documents.table.gui; |
|
23 |
|
|
24 |
import java.awt.BorderLayout; |
|
25 |
import java.awt.FlowLayout; |
|
26 |
import java.awt.event.ActionEvent; |
|
27 |
import java.awt.event.ActionListener; |
|
28 |
import java.util.ArrayList; |
|
29 |
import java.util.List; |
|
30 |
|
|
31 |
import javax.swing.JButton; |
|
32 |
import javax.swing.JPanel; |
|
33 |
import javax.swing.JScrollPane; |
|
34 |
import javax.swing.JTextArea; |
|
35 |
|
|
36 |
import org.gvsig.andami.PluginServices; |
|
37 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
38 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
39 |
import org.gvsig.app.project.documents.table.ExportStatisticsFile; |
|
40 |
import org.gvsig.tools.swing.api.ToolsSwingLocator; |
|
41 |
|
|
42 |
/** |
|
43 |
* @author Fernando Gonz?lez Cort?s |
|
44 |
*/ |
|
45 |
public class Statistics extends JPanel implements IWindow { |
|
46 |
|
|
47 |
/** |
|
48 |
* |
|
49 |
*/ |
|
50 |
private static final long serialVersionUID = 4121044001351869615L; |
|
51 |
private JScrollPane jScrollPane = null; |
|
52 |
private JTextArea txtStatistics = null; |
|
53 |
private JButton jButton = null; |
|
54 |
private JPanel jPanel = null; |
|
55 |
private JButton jButtonExport; |
|
56 |
|
|
57 |
// private Hashtable<String, Number> valores = new Hashtable<String, |
|
58 |
// Number>(); |
|
59 |
// private TreeMap<String, Number> valores = new TreeMap<String, Number>(); |
|
60 |
private List<MyObjectStatistics> valores = |
|
61 |
new ArrayList<MyObjectStatistics>(); |
|
62 |
|
|
63 |
// private HashSet<String, Number> valores = new HashSet<String, Number>(); |
|
64 |
/** |
|
65 |
* This is the default constructor |
|
66 |
*/ |
|
67 |
public Statistics() { |
|
68 |
super(); |
|
69 |
initialize(); |
|
70 |
} |
|
71 |
|
|
72 |
/** |
|
73 |
* This method initializes this |
|
74 |
* |
|
75 |
* @return void |
|
76 |
*/ |
|
77 |
private void initialize() { |
|
78 |
this.setLayout(new BorderLayout()); |
|
79 |
this.setSize(300, 200); |
|
80 |
this.add(getJScrollPane(), java.awt.BorderLayout.CENTER); |
|
81 |
this.add(getJPanel(), java.awt.BorderLayout.SOUTH); |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* This method initializes jScrollPane |
|
86 |
* |
|
87 |
* @return javax.swing.JScrollPane |
|
88 |
*/ |
|
89 |
private JScrollPane getJScrollPane() { |
|
90 |
if (jScrollPane == null) { |
|
91 |
jScrollPane = new JScrollPane(); |
|
92 |
jScrollPane.setViewportView(getTxtStatistics()); |
|
93 |
} |
|
94 |
return jScrollPane; |
|
95 |
} |
|
96 |
|
|
97 |
/** |
|
98 |
* This method initializes jTextArea |
|
99 |
* |
|
100 |
* @return javax.swing.JTextArea |
|
101 |
*/ |
|
102 |
private JTextArea getTxtStatistics() { |
|
103 |
if (txtStatistics == null) { |
|
104 |
txtStatistics = new JTextArea(); |
|
105 |
} |
|
106 |
return txtStatistics; |
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 |
* This method initializes jButton |
|
111 |
* |
|
112 |
* @return JButton |
|
113 |
*/ |
|
114 |
private JButton getJButton() { |
|
115 |
if (jButton == null) { |
|
116 |
jButton = |
|
117 |
ToolsSwingLocator.getUsabilitySwingManager().createJButton(); |
|
118 |
jButton.setPreferredSize(new java.awt.Dimension(100, 18)); |
|
119 |
jButton.setText(PluginServices.getText(this, "cerrar")); |
|
120 |
jButton.addActionListener(new ActionListener() { |
|
121 |
|
|
122 |
public void actionPerformed(ActionEvent e) { |
|
123 |
PluginServices.getMDIManager().closeWindow(Statistics.this); |
|
124 |
} |
|
125 |
}); |
|
126 |
} |
|
127 |
return jButton; |
|
128 |
} |
|
129 |
|
|
130 |
/** |
|
131 |
* This method initializes jButton |
|
132 |
* |
|
133 |
* @return JButton |
|
134 |
* - New JButton to Export the statistics |
|
135 |
*/ |
|
136 |
private JButton getJButtonExport() { |
|
137 |
if (jButtonExport == null) { |
|
138 |
jButtonExport = |
|
139 |
ToolsSwingLocator.getUsabilitySwingManager().createJButton(); |
|
140 |
jButtonExport.setPreferredSize(new java.awt.Dimension(100, 18)); |
|
141 |
jButtonExport.setText(PluginServices.getText(this, "exportar")); |
|
142 |
jButtonExport.addActionListener(new ActionListener() { |
|
143 |
|
|
144 |
public void actionPerformed(ActionEvent e) { |
|
145 |
new ExportStatisticsFile(valores); // Class to export |
|
146 |
// statistics to dbf or |
|
147 |
// csv format |
|
148 |
} |
|
149 |
});// listener |
|
150 |
} |
|
151 |
return jButtonExport; |
|
152 |
} |
|
153 |
|
|
154 |
/** |
|
155 |
* This method initializes jPanel |
|
156 |
* |
|
157 |
* @return javax.swing.JPanel |
|
158 |
*/ |
|
159 |
private JPanel getJPanel() { |
|
160 |
if (jPanel == null) { |
|
161 |
jPanel = new JPanel(); |
|
162 |
FlowLayout layout = new FlowLayout(); |
|
163 |
layout.setAlignment(FlowLayout.RIGHT); |
|
164 |
jPanel.setLayout(layout); |
|
165 |
jPanel.add(getJButtonExport(), null); |
|
166 |
jPanel.add(getJButton(), null); |
|
167 |
} |
|
168 |
return jPanel; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* @see org.gvsig.andami.ui.mdiManager.IWindow#getWindowInfo() |
|
173 |
*/ |
|
174 |
public WindowInfo getWindowInfo() { |
|
175 |
WindowInfo vi = new WindowInfo(WindowInfo.MODALDIALOG); |
|
176 |
vi.setTitle(PluginServices.getText(this, "estadisticas")); |
|
177 |
return vi; |
|
178 |
} |
|
179 |
|
|
180 |
/** |
|
181 |
* @param i |
|
182 |
* @param j |
|
183 |
* @param k |
|
184 |
* @param l |
|
185 |
* @param m |
|
186 |
* @param n |
|
187 |
* @param o |
|
188 |
* @param p |
|
189 |
*/ |
|
190 |
public void setStatistics(double media, double maximo, double minimo, |
|
191 |
double varianza, double desviacion, long numero, double ambito, |
|
192 |
double suma) { |
|
193 |
getTxtStatistics().setText( |
|
194 |
PluginServices.getText(this, "suma") + ": " + suma + "\n" |
|
195 |
+ PluginServices.getText(this, "recuento") + ": " + numero |
|
196 |
+ "\n" + PluginServices.getText(this, "media") + ": " + media |
|
197 |
+ "\n" + PluginServices.getText(this, "maximo") + ": " + maximo |
|
198 |
+ "\n" + PluginServices.getText(this, "minimo") + ": " + minimo |
|
199 |
+ "\n" + PluginServices.getText(this, "ambito") + ": " + ambito |
|
200 |
+ "\n" + PluginServices.getText(this, "varianza") + ": " |
|
201 |
+ varianza + "\n" |
|
202 |
+ PluginServices.getText(this, "desviacion_tipica") + ": " |
|
203 |
+ desviacion); |
|
204 |
|
|
205 |
// Saving the statistics table values necessary in |
|
206 |
// ExportStatisticsFile.java |
|
207 |
valores.add(new MyObjectStatistics( |
|
208 |
PluginServices.getText(this, "suma"), suma)); |
|
209 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
210 |
"recuento"), numero)); |
|
211 |
valores.add(new MyObjectStatistics(PluginServices |
|
212 |
.getText(this, "media"), media)); |
|
213 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
214 |
"maximo"), maximo)); |
|
215 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
216 |
"minimo"), minimo)); |
|
217 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
218 |
"ambito"), ambito)); |
|
219 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
220 |
"varianza"), varianza)); |
|
221 |
valores.add(new MyObjectStatistics(PluginServices.getText(this, |
|
222 |
"desviacion_tipica"), desviacion)); |
|
223 |
|
|
224 |
} |
|
225 |
|
|
226 |
/** |
|
227 |
* Class to create an object with key and value. |
|
228 |
* |
|
229 |
* @author ?ngel Fraile Gri??n e-mail: angel.fraile@iver.es |
|
230 |
* |
|
231 |
*/ |
|
232 |
|
|
233 |
public class MyObjectStatistics { |
|
234 |
|
|
235 |
private String key; |
|
236 |
private double value; |
|
237 |
|
|
238 |
public MyObjectStatistics(String key, double value) { |
|
239 |
this.key = key; |
|
240 |
this.value = value; |
|
241 |
} |
|
242 |
|
|
243 |
public String getKey() { |
|
244 |
return this.key; |
|
245 |
} |
|
246 |
|
|
247 |
public double getValue() { |
|
248 |
return this.value; |
|
249 |
} |
|
250 |
|
|
251 |
} |
|
252 |
|
|
253 |
public Object getWindowProfile() { |
|
254 |
return WindowInfo.DIALOG_PROFILE; |
|
255 |
} |
|
256 |
|
|
257 |
} |
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/gui/package.html | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
|
2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
4 |
<head> |
|
5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|
6 |
<title>org.gvsig.landregistryviewer package documentation</title> |
|
7 |
</head> |
|
8 |
<body> |
|
9 |
|
|
10 |
<p>Table document UI components</p> |
|
11 |
|
|
12 |
</body> |
|
13 |
</html> |
tags/v2_0_0_Build_2060/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/gui/CreateNewAttributePanel.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.app.project.documents.table.gui; |
|
23 |
|
|
24 |
import java.awt.BorderLayout; |
|
25 |
import java.awt.GridLayout; |
|
26 |
import java.awt.LayoutManager; |
|
27 |
import java.awt.event.ActionListener; |
|
28 |
import java.awt.event.KeyEvent; |
|
29 |
import java.awt.event.KeyListener; |
|
30 |
import java.text.ParseException; |
|
31 |
|
|
32 |
import javax.swing.JComboBox; |
|
33 |
import javax.swing.JLabel; |
|
34 |
import javax.swing.JPanel; |
|
35 |
import javax.swing.JTextField; |
|
36 |
|
|
37 |
import org.gvsig.andami.PluginServices; |
|
38 |
import org.gvsig.andami.messages.NotificationManager; |
|
39 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
40 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
|
41 |
import org.gvsig.fmap.dal.DataTypes; |
|
42 |
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor; |
|
43 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
|
44 |
import org.gvsig.gui.beans.AcceptCancelPanel; |
|
45 |
import org.gvsig.tools.ToolsLocator; |
|
46 |
import org.gvsig.tools.dataTypes.DataTypesManager; |
|
47 |
|
|
48 |
/** |
|
49 |
* To create new FeatureAttributeDescriptor from the interface. |
|
50 |
* |
|
51 |
* @author Vicente Caballero Navarro |
|
52 |
* |
|
53 |
*/ |
|
54 |
public class CreateNewAttributePanel extends JPanel implements IWindow { |
|
55 |
|
|
56 |
/** |
|
57 |
* |
|
58 |
*/ |
|
59 |
private static final long serialVersionUID = 6447641307779709964L; |
|
60 |
private static final String DEFAULT_FIELD_LENGTH = "50"; |
|
61 |
private JLabel jLblFieldName = null; |
|
62 |
private JTextField jTxtFieldName = null; |
|
63 |
private JLabel jLblFieldType = null; |
|
64 |
private JComboBox jCboFieldType = null; |
|
65 |
private JLabel jLblFieldLength = null; |
|
66 |
private JTextField jTxtFieldLength = null; |
|
67 |
private JLabel jLblFieldPrecision = null; |
|
68 |
private JTextField jTxtFieldPrecision = null; |
|
69 |
private JLabel jLblDefaultValue = null; |
|
70 |
private JTextField jTxtDefaultValue = null; |
|
71 |
private WindowInfo viewInfo; |
|
72 |
private JPanel jPanel = null; |
|
73 |
private AcceptCancelPanel jPanelOkCancel = null; |
|
74 |
private JPanel jPnlFields = null; |
|
75 |
private KeyListener checkInt = new KeyListener() { |
|
76 |
|
|
77 |
public void keyPressed(KeyEvent e) { |
|
78 |
// do nothing |
|
79 |
} |
|
80 |
|
|
81 |
public void keyReleased(KeyEvent e) { |
|
82 |
JTextField component = (JTextField) e.getComponent(); |
|
83 |
|
|
84 |
try { |
|
85 |
component.setText(String.valueOf(Integer.parseInt(component |
|
86 |
.getText()))); |
|
87 |
|
|
88 |
} catch (Exception ex) { |
|
89 |
String text = component.getText(); |
|
90 |
text = |
|
91 |
(text.length() <= 1) ? "0" : text.substring(0, |
|
92 |
text.length() - 1); |
|
93 |
component.setText(text); |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
97 |
public void keyTyped(KeyEvent e) { |
|
98 |
// do nothing |
|
99 |
} |
|
100 |
}; |
|
101 |
private String[] currentFieldNames; |
|
102 |
|
|
103 |
public CreateNewAttributePanel() { |
|
104 |
super(); |
|
105 |
initialize(); |
|
106 |
} |
|
107 |
|
|
108 |
public CreateNewAttributePanel(boolean isDoubleBuffered) { |
|
109 |
super(isDoubleBuffered); |
|
110 |
initialize(); |
|
111 |
} |
|
112 |
|
|
113 |
public CreateNewAttributePanel(LayoutManager layout) { |
|
114 |
super(layout); |
|
115 |
initialize(); |
|
116 |
} |
|
117 |
|
|
118 |
public CreateNewAttributePanel(LayoutManager layout, |
|
119 |
boolean isDoubleBuffered) { |
|
120 |
super(layout, isDoubleBuffered); |
|
121 |
initialize(); |
|
122 |
} |
|
123 |
|
|
124 |
public WindowInfo getWindowInfo() { |
|
125 |
if (viewInfo == null) { |
|
126 |
viewInfo = new WindowInfo(WindowInfo.MODALDIALOG); |
|
127 |
viewInfo.setWidth(this.getWidth() + 8); |
|
128 |
viewInfo.setHeight(this.getHeight()); |
|
129 |
viewInfo.setTitle(PluginServices.getText(this, |
|
130 |
"new_field_properties")); |
|
131 |
} |
|
132 |
return viewInfo; |
|
133 |
} |
|
134 |
|
|
135 |
/** |
|
136 |
* This method initializes this |
|
137 |
* |
|
138 |
* @return void |
|
139 |
*/ |
|
140 |
private void initialize() { |
|
141 |
this.setLayout(new BorderLayout()); |
|
142 |
this.setSize(300, 210); |
|
143 |
this.setPreferredSize(new java.awt.Dimension(300, 210)); |
|
144 |
this.add(getJPanel(), java.awt.BorderLayout.CENTER); |
|
145 |
this.add(getJPanelOkCancel(), java.awt.BorderLayout.SOUTH); |
|
146 |
} |
|
147 |
|
|
148 |
/** |
|
149 |
* This method initializes jTxtFieldName |
|
150 |
* |
|
151 |
* @return javax.swing.JTextField |
|
152 |
*/ |
|
153 |
private JTextField getJTxtFieldName() { |
|
154 |
if (jTxtFieldName == null) { |
|
155 |
jTxtFieldName = new JTextField(); |
|
156 |
jTxtFieldName.setBounds(new java.awt.Rectangle(147, 15, 138, 22)); |
|
157 |
} |
|
158 |
return jTxtFieldName; |
|
159 |
} |
|
160 |
|
|
161 |
/** |
|
162 |
* This method initializes jCboFieldType |
|
163 |
* |
|
164 |
* @return javax.swing.JComboBox |
|
165 |
*/ |
|
166 |
private JComboBox getJCboFieldType() { |
|
167 |
DataTypesManager manager = ToolsLocator.getDataTypesManager(); |
|
168 |
if (jCboFieldType == null) { |
|
169 |
jCboFieldType = new JComboBox(); |
|
170 |
jCboFieldType.setBounds(new java.awt.Rectangle(147, 52, 138, 22)); |
|
171 |
jCboFieldType.addItem(manager.getTypeName(DataTypes.BOOLEAN)); |
|
172 |
jCboFieldType.addItem(manager.getTypeName(DataTypes.DATE)); |
|
173 |
jCboFieldType.addItem(manager.getTypeName(DataTypes.INT)); |
|
174 |
jCboFieldType.addItem(manager.getTypeName(DataTypes.DOUBLE)); |
|
175 |
jCboFieldType.addItem(manager.getTypeName(DataTypes.STRING)); |
|
176 |
|
|
177 |
jCboFieldType.setSelectedIndex(4); |
|
178 |
jCboFieldType |
|
179 |
.addActionListener(new java.awt.event.ActionListener() { |
|
180 |
|
|
181 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
|
182 |
DataTypesManager manager = |
|
183 |
ToolsLocator.getDataTypesManager(); |
|
184 |
String strType = |
|
185 |
(String) getJCboFieldType().getModel() |
|
186 |
.getSelectedItem(); |
|
187 |
if (strType == manager.getTypeName(DataTypes.STRING)) { |
|
188 |
getJTxtFieldPrecision().setEnabled(true); |
|
189 |
if (getJTxtFieldPrecision().getText().equals("")) { |
|
190 |
getJTxtFieldPrecision().setText("3"); |
|
191 |
} else { |
|
192 |
try { |
|
193 |
Integer.parseInt(getJTxtFieldPrecision() |
|
194 |
.getText()); |
|
195 |
} catch (NumberFormatException e1) { |
|
196 |
getJTxtFieldPrecision().setText("3"); |
|
197 |
} |
|
198 |
} |
|
199 |
} else { |
|
200 |
getJTxtFieldPrecision().setEnabled(false); |
|
201 |
} |
|
202 |
if (strType == manager.getTypeName(DataTypes.BOOLEAN)) { |
|
203 |
getJTxtFieldLength().setText("0"); |
|
204 |
getJTxtFieldLength().setEnabled(false); |
|
205 |
} else { |
|
206 |
getJTxtFieldLength().setEnabled(true); |
|
207 |
} |
|
208 |
|
|
209 |
} |
|
210 |
}); |
|
211 |
|
|
212 |
} |
|
213 |
return jCboFieldType; |
|
214 |
} |
|
215 |
|
|
216 |
/** |
|
217 |
* This method initializes jTxtFieldLength |
|
218 |
* |
|
219 |
* @return javax.swing.JTextField |
|
220 |
*/ |
|
221 |
private JTextField getJTxtFieldLength() { |
|
222 |
if (jTxtFieldLength == null) { |
|
223 |
jTxtFieldLength = new JTextField(); |
|
224 |
jTxtFieldLength.setBounds(new java.awt.Rectangle(147, 89, 138, 22)); |
|
225 |
jTxtFieldLength.setText(DEFAULT_FIELD_LENGTH); |
|
226 |
jTxtFieldLength.addKeyListener(checkInt); |
|
227 |
} |
|
228 |
return jTxtFieldLength; |
|
229 |
} |
|
230 |
|
|
231 |
/** |
|
232 |
* This method initializes jTxtFieldPrecision |
|
233 |
* |
|
234 |
* @return javax.swing.JTextField |
|
235 |
*/ |
|
236 |
private JTextField getJTxtFieldPrecision() { |
|
237 |
if (jTxtFieldPrecision == null) { |
|
238 |
jTxtFieldPrecision = new JTextField(); |
|
239 |
jTxtFieldPrecision.setBounds(new java.awt.Rectangle(147, 126, 138, |
|
240 |
22)); |
|
241 |
jTxtFieldPrecision.setEnabled(false); |
|
242 |
jTxtFieldPrecision.addKeyListener(checkInt); |
|
243 |
} |
|
244 |
return jTxtFieldPrecision; |
|
245 |
} |
|
246 |
|
|
247 |
/** |
|
248 |
* This method initializes jTxtDefaultValue |
|
249 |
* |
|
250 |
* @return javax.swing.JTextField |
|
251 |
*/ |
|
252 |
private JTextField getJTxtDefaultValue() { |
|
253 |
if (jTxtDefaultValue == null) { |
|
254 |
jTxtDefaultValue = new JTextField(); |
|
255 |
jTxtDefaultValue |
|
256 |
.setBounds(new java.awt.Rectangle(147, 163, 138, 22)); |
|
257 |
} |
|
258 |
return jTxtDefaultValue; |
|
259 |
} |
|
260 |
|
|
261 |
public EditableFeatureAttributeDescriptor loadFieldDescription( |
|
262 |
EditableFeatureType featureType) throws ParseException { |
|
263 |
String nameAttr = ""; |
|
264 |
int typeAttr = DataTypes.STRING; |
|
265 |
int sizeAttr = 0; |
|
266 |
int precisionAttr = 0; |
Also available in: Unified diff