|
|
@ -133,7 +133,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
// 最上面的pane,文件选择
|
|
|
|
// 最上面的pane,文件选择
|
|
|
|
JPanel centerPanel = new JPanel(); |
|
|
|
JPanel centerPanel = new JPanel(); |
|
|
|
centerPanel.setPreferredSize(new Dimension(522, 200)); |
|
|
|
centerPanel.setPreferredSize(new Dimension(522, 200)); |
|
|
|
centerPanel.setBorder(BorderFactory.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-File_address"))); |
|
|
|
centerPanel.setBorder(BorderFactory.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_File_Address"))); |
|
|
|
addToCenterPanel(centerPanel); |
|
|
|
addToCenterPanel(centerPanel); |
|
|
|
|
|
|
|
|
|
|
|
// 下面的pane,参数面板
|
|
|
|
// 下面的pane,参数面板
|
|
|
@ -162,7 +162,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void addToCenterPanel(JPanel centerPanel){ |
|
|
|
private void addToCenterPanel(JPanel centerPanel){ |
|
|
|
localFileRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Local_file") + ":", true); |
|
|
|
localFileRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Local_File") + ":", true); |
|
|
|
urlFileRadioButton = new UIRadioButton("URL:", false); |
|
|
|
urlFileRadioButton = new UIRadioButton("URL:", false); |
|
|
|
ButtonGroup bg = new ButtonGroup(); |
|
|
|
ButtonGroup bg = new ButtonGroup(); |
|
|
|
bg.add(localFileRadioButton); |
|
|
|
bg.add(localFileRadioButton); |
|
|
@ -199,7 +199,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
centerPanel.add(filePath, BorderLayout.NORTH); |
|
|
|
centerPanel.add(filePath, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
|
|
// 中间的pane,提示信息
|
|
|
|
// 中间的pane,提示信息
|
|
|
|
String tipContent = com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Type_Parameter") + "reportlets/excel/FineReport${abc}." + "txt" + "<br>" |
|
|
|
String tipContent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Type_Parameter") + "reportlets/excel/FineReport${abc}." + "txt" + "<br>" |
|
|
|
+ "http://192.168.100.120:8080/XXServer/Report/excel${abc}.jsp<br>" + " </body> </html> "; |
|
|
|
+ "http://192.168.100.120:8080/XXServer/Report/excel${abc}.jsp<br>" + " </body> </html> "; |
|
|
|
tips = new UILabel(tipContent); |
|
|
|
tips = new UILabel(tipContent); |
|
|
|
centerPanel.add(tips, BorderLayout.CENTER); |
|
|
|
centerPanel.add(tips, BorderLayout.CENTER); |
|
|
@ -209,7 +209,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
public void actionPerformed(ActionEvent arg0) { |
|
|
|
public void actionPerformed(ActionEvent arg0) { |
|
|
|
String uri = ParameterHelper.analyze4Templatee( urlText.getText(), params); |
|
|
|
String uri = ParameterHelper.analyze4Templatee( urlText.getText(), params); |
|
|
|
if (!checkURL(uri)) { |
|
|
|
if (!checkURL(uri)) { |
|
|
|
JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(FileTableDataPane.this), com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Add_JS_warning")); |
|
|
|
JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(FileTableDataPane.this), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Add_JS_warning")); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
params = getEditorPaneParameter(); |
|
|
|
params = getEditorPaneParameter(); |
|
|
@ -257,7 +257,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
controlPane.setLayout(new BorderLayout(8,8)); |
|
|
|
controlPane.setLayout(new BorderLayout(8,8)); |
|
|
|
controlPane.setPreferredSize(new Dimension(width, height)); |
|
|
|
controlPane.setPreferredSize(new Dimension(width, height)); |
|
|
|
JPanel comboboxPanel = new JPanel(new BorderLayout(8,8)); |
|
|
|
JPanel comboboxPanel = new JPanel(new BorderLayout(8,8)); |
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Encoding_Type") + ":"); |
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Encoding_Type") + ":"); |
|
|
|
encodingComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
encodingComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
encodingComboBox.setSelectedIndex(4); |
|
|
|
encodingComboBox.setSelectedIndex(4); |
|
|
|
encodingComboBox.setPreferredSize(new Dimension(90, 20)); |
|
|
|
encodingComboBox.setPreferredSize(new Dimension(90, 20)); |
|
|
@ -288,7 +288,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
JPanel northPane = new JPanel(new BorderLayout(8,8)); |
|
|
|
JPanel northPane = new JPanel(new BorderLayout(8,8)); |
|
|
|
controlPane.setLayout(new BorderLayout()); |
|
|
|
controlPane.setLayout(new BorderLayout()); |
|
|
|
controlPane.setPreferredSize(new Dimension(width,height)); |
|
|
|
controlPane.setPreferredSize(new Dimension(width,height)); |
|
|
|
needColumnNameCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FirstRow_IS_ColumnName"), false); |
|
|
|
needColumnNameCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_FirstRow_IS_Column_Name"), false); |
|
|
|
needColumnNameCheckBox.setPreferredSize(new Dimension(checkBoxWidth, 20)); |
|
|
|
needColumnNameCheckBox.setPreferredSize(new Dimension(checkBoxWidth, 20)); |
|
|
|
northPane.add(needColumnNameCheckBox, BorderLayout.EAST); |
|
|
|
northPane.add(needColumnNameCheckBox, BorderLayout.EAST); |
|
|
|
controlPane.add(northPane, BorderLayout.NORTH); |
|
|
|
controlPane.add(northPane, BorderLayout.NORTH); |
|
|
@ -314,7 +314,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
if (urlFileRadioButton.isSelected()) { |
|
|
|
if (urlFileRadioButton.isSelected()) { |
|
|
|
String url = urlText.getText().trim(); |
|
|
|
String url = urlText.getText().trim(); |
|
|
|
if (!checkURL(url)) { |
|
|
|
if (!checkURL(url)) { |
|
|
|
throw new Exception(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Add_JS_warning")); |
|
|
|
throw new Exception(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Add_JS_warning")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -347,7 +347,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double columnSize[] = {f, p, p}; |
|
|
|
double columnSize[] = {f, p, p}; |
|
|
|
double rowSize[] = {B, B, B, B, B, B, B}; |
|
|
|
double rowSize[] = {B, B, B, B, B, B, B}; |
|
|
|
needColumnNameCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-FirstRow_IS_ColumnName"), true); |
|
|
|
needColumnNameCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_FirstRow_IS_Column_Name"), true); |
|
|
|
dismenberLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Dismenber") + ":"); |
|
|
|
dismenberLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_Dismenber") + ":"); |
|
|
|
tableDismemberRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_TableDismember"), false); |
|
|
|
tableDismemberRadioButton = new UIRadioButton(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_TableDismember"), false); |
|
|
|
tableDismemberRadioButton.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_TableDismember")); |
|
|
|
tableDismemberRadioButton.setToolTipText(com.fr.design.i18n.Toolkit.i18nText("FR-Designer_TableDismember")); |
|
|
@ -374,8 +374,8 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
bg2.add(spaceDismenberRadioButton); |
|
|
|
bg2.add(spaceDismenberRadioButton); |
|
|
|
bg2.add(commaDismenberRadioButton); |
|
|
|
bg2.add(commaDismenberRadioButton); |
|
|
|
bg2.add(otherDismenberRadioButton); |
|
|
|
bg2.add(otherDismenberRadioButton); |
|
|
|
igoreOneMoreDelimiterCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Series_Dismenber_As_Single"), true); |
|
|
|
igoreOneMoreDelimiterCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Series_Dismenber_As_Single"), true); |
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Encoding_Type") + ":"); |
|
|
|
encodeLabel = new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Encoding_Type") + ":"); |
|
|
|
charsetComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
charsetComboBox = new UIComboBox(EncodeConstants.ALL_ENCODING_ARRAY); |
|
|
|
Component[][] comps = { |
|
|
|
Component[][] comps = { |
|
|
|
{encodeLabel,charsetComboBox,null}, |
|
|
|
{encodeLabel,charsetComboBox,null}, |
|
|
@ -475,7 +475,7 @@ public class FileTableDataPane extends AbstractTableDataPane<FileTableData> { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setPanel.add(textSetPanel(width,height), BorderLayout.NORTH); |
|
|
|
setPanel.add(textSetPanel(width,height), BorderLayout.NORTH); |
|
|
|
} |
|
|
|
} |
|
|
|
String tipContent = com.fr.design.i18n.Toolkit.i18nText("FR-Designer-Type_Parameter") + "reportlets/excel/FineReport${abc}." + getFileSuffixToString() + "<br>" |
|
|
|
String tipContent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Type_Parameter") + "reportlets/excel/FineReport${abc}." + getFileSuffixToString() + "<br>" |
|
|
|
+ "http://192.168.100.120:8080/XXServer/Report/excel${abc}.jsp<br>" + " </body> </html> "; |
|
|
|
+ "http://192.168.100.120:8080/XXServer/Report/excel${abc}.jsp<br>" + " </body> </html> "; |
|
|
|
tips.setText(tipContent); |
|
|
|
tips.setText(tipContent); |
|
|
|
setPanel.revalidate(); |
|
|
|
setPanel.revalidate(); |
|
|
|