From ae5cd80e9c61c7c32b1f29a013b3d9e14c9ae5e1 Mon Sep 17 00:00:00 2001 From: pengda Date: Wed, 20 Oct 2021 10:39:22 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-61105=20&=20REPORT-61096=20&=20REPORT-61?= =?UTF-8?q?012=20=E6=8E=A7=E4=BB=B6=E8=81=94=E5=8A=A8=E5=8F=8A=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E8=80=81=E6=A8=A1=E6=9D=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../javascript/ExportJavaScriptPane.java | 35 +++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java b/designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java index b559c22e6..cd094480b 100644 --- a/designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java +++ b/designer-base/src/main/java/com/fr/design/javascript/ExportJavaScriptPane.java @@ -399,6 +399,8 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane { + if (e.getStateChange() == ItemEvent.SELECTED) { + final int row = table.getSelectedRow(); + if (row == -1) { + return; + } + SingleJavaScript js = getList().get(row); + Object ob = fileNameComboBox.getSelectedItem(); + if (ob != null) { + String value = ob.toString(); + js.setDefaultFileName(StringUtils.equals(value, DEFAULT)); + if (js.isDefaultFileName()) { + js.setFileName(StringUtils.EMPTY); + } + } + table.repaint(); + } + }); this.addCellEditorListener(new CellEditorListener() { @Override @@ -458,15 +478,6 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane