|
|
|
@ -166,6 +166,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> {
|
|
|
|
|
rightPanel.setBorder(new ScaledEmptyBorder(0,0,0,10)); |
|
|
|
|
rightPanel.add(getTextSetPanel()); |
|
|
|
|
fileTypeComboBox.addActionListener(getFileTypeListener(rightPanel)); |
|
|
|
|
rightPanel.setPreferredSize(FineUIScale.scale(new Dimension(-1, 400))); |
|
|
|
|
|
|
|
|
|
//文件数据集整体布局,服务器数据集/模板数据集下的文件数据集,创建文件数据集,三处面板通用布局
|
|
|
|
|
this.add(column(LayoutConstants.VERTICAL_GAP, |
|
|
|
@ -274,12 +275,14 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> {
|
|
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Encoding_Type")); |
|
|
|
|
encodingComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
|
encodingComboBox.setSelectedIndex(4); |
|
|
|
|
return column( |
|
|
|
|
JPanel xmlSetPanel = new JPanel(new BorderLayout()); |
|
|
|
|
xmlSetPanel.add(column( |
|
|
|
|
LayoutConstants.VGAP_MEDIUM, |
|
|
|
|
row(LayoutConstants.HORIZONTAL_GAP, cell(encodeLabel).weight(0.2), cell(encodingComboBox).weight(0.8)), |
|
|
|
|
cell(new XMLNodeTreePane()), |
|
|
|
|
cell(new XMLNodeTreePane()).weight(1), |
|
|
|
|
cell(getPreviewPanel()) |
|
|
|
|
).getComponent(); |
|
|
|
|
).getComponent()); |
|
|
|
|
return xmlSetPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -288,7 +291,9 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> {
|
|
|
|
|
*/ |
|
|
|
|
private JPanel getExcelSetPanel() { |
|
|
|
|
needColumnNameCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_FirstRow_IS_Column_Name"), false); |
|
|
|
|
return column(cell(needColumnNameCheckBox), cell(getPreviewPanel())).getComponent(); |
|
|
|
|
JPanel excelSetPanel = new JPanel(new BorderLayout()); |
|
|
|
|
excelSetPanel.add(column(cell(needColumnNameCheckBox), flex(1), cell(getPreviewPanel())).getComponent()); |
|
|
|
|
return excelSetPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String getFilePathFromUrlOrLocal() { |
|
|
|
@ -335,7 +340,9 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> {
|
|
|
|
|
//编码类型
|
|
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Encoding_Type")); |
|
|
|
|
charsetComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
|
return column(cell(getTxtCenterPane()), cell(getPreviewPanel())).getComponent(); |
|
|
|
|
JPanel textSetPanel = new JPanel(new BorderLayout()); |
|
|
|
|
textSetPanel.add(column(cell(getTxtCenterPane()), flex(1), cell(getPreviewPanel())).getComponent()); |
|
|
|
|
return textSetPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|