|
|
|
@ -326,16 +326,19 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
private UIButton browserButton; |
|
|
|
|
|
|
|
|
|
public ExportTemplateChooser() { |
|
|
|
|
reportletNamePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
// 路径输入框
|
|
|
|
|
reportPathTextField = new UITextField(7); |
|
|
|
|
reportPathTextField = new UITextField(8); |
|
|
|
|
reportPathTextField.setEnabled(false); |
|
|
|
|
reportletNamePane.add(reportPathTextField, BorderLayout.WEST); |
|
|
|
|
|
|
|
|
|
// 选择路径按钮
|
|
|
|
|
browserButton = new UIButton("..."); |
|
|
|
|
browserButton.setVisible(true); |
|
|
|
|
reportletNamePane.add(browserButton, BorderLayout.EAST); |
|
|
|
|
|
|
|
|
|
Component[][] templateChooserComponent = {{reportPathTextField, browserButton}}; |
|
|
|
|
double[] rowSize = {TableLayout.PREFERRED}; |
|
|
|
|
double[] columnSize = {TableLayout.FILL, 22}; |
|
|
|
|
reportletNamePane = TableLayoutHelper.createCommonTableLayoutPane(templateChooserComponent, rowSize, columnSize, 0); |
|
|
|
|
|
|
|
|
|
browserButton.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
@ -777,6 +780,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
if (currentTemplatePane.extendParametersCheckBox.isSelected()) { |
|
|
|
|
exportJavaScript.setParameters(null); |
|
|
|
|
} else { |
|
|
|
|
if (parameterViewPane != null) { |
|
|
|
|
List<ParameterProvider> parameterList = parameterViewPane.update(); |
|
|
|
|
if (!parameterList.isEmpty()) { |
|
|
|
|
Parameter[] parameters = new Parameter[parameterList.size()]; |
|
|
|
@ -784,6 +788,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
js.setParameters(parameters); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
exportJavaScript.addJS(js); |
|
|
|
|
} else { |
|
|
|
|
List<SingleJavaScript> javaScripts = otherTemplatePane.editorPane.update(); |
|
|
|
|