Revision 45232
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/panels/SelectAttributesPanel.java | ||
---|---|---|
6 | 6 |
import java.awt.event.ActionListener; |
7 | 7 |
import java.awt.event.KeyAdapter; |
8 | 8 |
import java.awt.event.KeyEvent; |
9 |
import java.awt.event.MouseEvent; |
|
9 | 10 |
import java.net.URL; |
10 | 11 |
import java.util.ArrayList; |
11 | 12 |
import java.util.Comparator; |
... | ... | |
27 | 28 |
import javax.swing.JOptionPane; |
28 | 29 |
import javax.swing.JTable; |
29 | 30 |
import javax.swing.table.AbstractTableModel; |
31 |
import javax.swing.table.JTableHeader; |
|
30 | 32 |
import javax.swing.table.TableCellRenderer; |
31 | 33 |
import javax.swing.table.TableColumnModel; |
32 | 34 |
import javax.swing.table.TableModel; |
... | ... | |
90 | 92 |
final private ExportAttributes attributes; |
91 | 93 |
private final String[] columnNames = new String[COLUMN_FIELD_COUNT]; |
92 | 94 |
private final Class[] columnClases = new Class[COLUMN_FIELD_COUNT]; |
95 |
private final String[] columnToolTips = new String[COLUMN_FIELD_COUNT]; |
|
93 | 96 |
private final DataTypesManager dataManager; |
94 | 97 |
private final SelectAttributesPanel panel; |
95 | 98 |
|
... | ... | |
113 | 116 |
columnClases[COLUMN_FIELD_SIZE] = Integer.class; |
114 | 117 |
columnClases[COLUMN_FIELD_EXPORT] = Boolean.class; |
115 | 118 |
columnClases[COLUMN_FIELD_CALCULATED] = Boolean.class; |
119 |
|
|
120 |
columnToolTips[COLUMN_FIELD_NAME] = i18nManager.getTranslation("_Actual_field_name"); |
|
121 |
columnToolTips[COLUMN_FIELD_NEW_NAME] = i18nManager.getTranslation("_New_field_name_in_the_export"); |
|
122 |
columnToolTips[COLUMN_FIELD_ORIGIN] = i18nManager.getTranslation("_Origin"); |
|
123 |
columnToolTips[COLUMN_FIELD_TYPE] = i18nManager.getTranslation("_Attribute_descriptor_type"); |
|
124 |
columnToolTips[COLUMN_FIELD_SIZE] = i18nManager.getTranslation("_Field_size"); |
|
125 |
columnToolTips[COLUMN_FIELD_CALCULATED] = i18nManager.getTranslation("_Export_attribute_as_an_expression_or_as_a_real_field"); |
|
126 |
columnToolTips[COLUMN_FIELD_EXPORT] = i18nManager.getTranslation("_Select_if_field_has_to_be_exported"); |
|
116 | 127 |
} |
128 |
|
|
129 |
public String getColumnToolTip(int column) { |
|
130 |
return columnToolTips[column]; |
|
131 |
} |
|
117 | 132 |
|
118 | 133 |
@Override |
119 | 134 |
public int getRowCount() { |
... | ... | |
540 | 555 |
} |
541 | 556 |
|
542 | 557 |
private void initComponents() { |
558 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
559 |
this.tblAttributes.getTableHeader().setToolTipText( |
|
560 |
i18n.getTranslation("_Select_in_the_check_box_wich_fields_wanted_to_be_exported_and_configure_its_attributes")); |
|
543 | 561 |
this.messageController = ToolsSwingLocator.getToolsSwingManager().createMessageBarController(lblMessage, 10000); |
544 | 562 |
this.tblAttributes.setAutoCreateRowSorter(true); |
545 | 563 |
this.tblAttributes.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); |
546 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
547 | 564 |
this.lblHeader.setText(i18n.getTranslation("_Select_name_type_size_and_attributes_to_export")); |
548 | 565 |
|
549 | 566 |
this.tableFilterController = new TableFilterController( |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1487 | 1487 |
_Show_all_bookmarks=Mostrar todos los favoritos |
1488 | 1488 |
_Click_to_see_more_action_in_this_panel=Presiona para ver m\u00e1s acciones |
1489 | 1489 |
_Name=Nombre |
1490 |
_Last_use=\u00daltimo uso |
|
1490 |
_Last_use=\u00daltimo uso |
|
1491 |
_Actual_field_name=Nombre del campo actual |
|
1492 |
_New_field_name_in_the_export=Nuevo nombre del campo en la exportaci\u00f3n |
|
1493 |
_Origin=Origen |
|
1494 |
_Attribute_descriptor_type=Tipo del dato en el descriptor |
|
1495 |
_Field_size=Tama\u00f1o del campo |
|
1496 |
_Export_attribute_as_an_expression_or_as_a_real_field=Exportar el atributo como una expresi\u00f3n o un campo real |
|
1497 |
_Select_if_field_has_to_be_exported=Seleccionar si desea exportar el campo |
|
1498 |
_Select_in_the_check_box_wich_fields_wanted_to_be_exported_and_configure_its_attributes=Seleccionar los campos que desean ser \nexportados y configura sus atributos. |
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1405 | 1405 |
_Errors_occurred_during_search=Errors occurred during search |
1406 | 1406 |
_Show_all_history=Show all history |
1407 | 1407 |
_Show_all_bookmarks=Show all bookmarks |
1408 |
_Click_to_see_more_action_in_this_panel=Click to see more actions |
|
1408 |
_Click_to_see_more_action_in_this_panel=Click to see more actions |
|
1409 |
_Actual_field_name=Actual field name |
|
1410 |
_New_field_name_in_the_export=New field name in the export |
|
1411 |
_Origin=Origin |
|
1412 |
_Attribute_descriptor_type=Attribute descriptor type |
|
1413 |
_Field_size=Field size |
|
1414 |
_Export_attribute_as_an_expression_or_as_a_real_field=Export attribute as an expression or as a real field |
|
1415 |
_Select_if_field_has_to_be_exported=Select if field has to be exported |
|
1416 |
_Select_in_the_check_box_wich_fields_wanted_to_be_exported_and_configure_its_attributes=Select in the check box wich fields \nwanted to export and configure its attributes |
Also available in: Unified diff