|
|
|
@ -117,7 +117,9 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
|
|
|
|
|
private JPanel initParamsPane() { |
|
|
|
|
extendParametersCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Basic_Hyperlink_Extends_Report_Parameters")); |
|
|
|
|
extendParametersCheckBox.setSelected(true); |
|
|
|
|
parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane()); |
|
|
|
|
parameterViewPane.setVisible(false); |
|
|
|
|
parameterViewPane.addTableEditorListener(new TableModelListener() { |
|
|
|
|
public void tableChanged(TableModelEvent e) { |
|
|
|
|
List<ParameterProvider> list = parameterViewPane.update(); |
|
|
|
@ -158,6 +160,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
customNameRadio = new UIRadioButton(Toolkit.i18nText("Fine-Design_Basic_Export_JS_Filename_Custom")); |
|
|
|
|
addRadioToGroup(fileNameRadioGroup, defaultNameRadio, customNameRadio); |
|
|
|
|
fileNameFormulaEditor = new FormulaEditor(Toolkit.i18nText("Fine-Design_Report_Parameter_Formula")); |
|
|
|
|
fileNameFormulaEditor.setEnabled(false); |
|
|
|
|
fileNameRadioGroup.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
@ -220,10 +223,8 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
if (currentTemplateRadio.isSelected()) { |
|
|
|
|
reportPathTextField.setEnabled(false); |
|
|
|
|
browserButton.setEnabled(false); |
|
|
|
|
} else { |
|
|
|
|
reportPathTextField.setEnabled(true); |
|
|
|
|
browserButton.setEnabled(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -234,11 +235,13 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
JPanel reportletNamePane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
// 路径输入框
|
|
|
|
|
reportPathTextField = new UITextField(20); |
|
|
|
|
reportPathTextField.setEnabled(false); |
|
|
|
|
reportletNamePane.add(reportPathTextField, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
// 选择路径按钮
|
|
|
|
|
browserButton = new UIButton(Toolkit.i18nText("Fine-Design_Basic_Select")); |
|
|
|
|
browserButton.setPreferredSize(new Dimension(browserButton.getPreferredSize().width, 20)); |
|
|
|
|
browserButton.setEnabled(false); |
|
|
|
|
reportletNamePane.add(browserButton, BorderLayout.EAST); |
|
|
|
|
browserButton.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
@ -272,10 +275,8 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
} |
|
|
|
|
this.templateRadioGroup.selectIndexButton(ob.isCurrentTemplate() ? 0 : 1); |
|
|
|
|
if (ob.isCurrentTemplate()) { |
|
|
|
|
this.reportPathTextField.setEnabled(false); |
|
|
|
|
this.browserButton.setEnabled(false); |
|
|
|
|
} else { |
|
|
|
|
this.reportPathTextField.setEnabled(true); |
|
|
|
|
this.browserButton.setEnabled(true); |
|
|
|
|
this.reportPathTextField.setText(ob.getTemplatePath()); |
|
|
|
|
} |
|
|
|
|