|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.javascript; |
|
|
|
package com.fr.design.javascript; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
import com.fr.design.data.tabledata.tabledatapane.OneListTableModel; |
|
|
|
import com.fr.design.data.tabledata.tabledatapane.OneListTableModel; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.gui.frpane.ReportletParameterViewPane; |
|
|
|
import com.fr.design.gui.frpane.ReportletParameterViewPane; |
|
|
@ -9,6 +10,7 @@ import com.fr.design.gui.itableeditorpane.UITableEditAction; |
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditorPane; |
|
|
|
import com.fr.design.gui.itableeditorpane.UITableEditorPane; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.gui.itextfield.UITextField; |
|
|
|
import com.fr.design.hyperlink.AbstractHyperLinkPane; |
|
|
|
import com.fr.design.hyperlink.AbstractHyperLinkPane; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.javascript.jsapi.JSImplPopulateAction; |
|
|
|
import com.fr.design.javascript.jsapi.JSImplPopulateAction; |
|
|
|
import com.fr.design.javascript.jsapi.JSImplUpdateAction; |
|
|
|
import com.fr.design.javascript.jsapi.JSImplUpdateAction; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
@ -20,6 +22,7 @@ import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import javax.swing.border.TitledBorder; |
|
|
|
import javax.swing.event.TableModelEvent; |
|
|
|
import javax.swing.event.TableModelEvent; |
|
|
|
import javax.swing.event.TableModelListener; |
|
|
|
import javax.swing.event.TableModelListener; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
@ -67,7 +70,9 @@ public class JavaScriptImplPane extends AbstractHyperLinkPane<JavaScriptImpl> { |
|
|
|
importedJsPane.setPreferredSize(new Dimension(265, 150)); |
|
|
|
importedJsPane.setPreferredSize(new Dimension(265, 150)); |
|
|
|
|
|
|
|
|
|
|
|
jsPane = createJSContentPane(defaultArgs); |
|
|
|
jsPane = createJSContentPane(defaultArgs); |
|
|
|
jsPane.setBorder(BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_JavaScript"))); |
|
|
|
TitledBorder titledBorder = BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), Toolkit.i18nText("Fine-Design_Report_JavaScript")); |
|
|
|
|
|
|
|
titledBorder.setTitleJustification(BidiUtils.rtl() ? TitledBorder.RIGHT : TitledBorder.LEFT); |
|
|
|
|
|
|
|
jsPane.setBorder(titledBorder); |
|
|
|
|
|
|
|
|
|
|
|
parameterPane.setPreferredSize(new Dimension(265, 150)); |
|
|
|
parameterPane.setPreferredSize(new Dimension(265, 150)); |
|
|
|
JPanel topPane = new JPanel(new GridLayout(1,2)); |
|
|
|
JPanel topPane = new JPanel(new GridLayout(1,2)); |
|
|
@ -143,7 +148,7 @@ public class JavaScriptImplPane extends AbstractHyperLinkPane<JavaScriptImpl> { |
|
|
|
}; |
|
|
|
}; |
|
|
|
UITableEditorPane<String> importedJsPane = new UITableEditorPane<String>(model); |
|
|
|
UITableEditorPane<String> importedJsPane = new UITableEditorPane<String>(model); |
|
|
|
importedJsPane.setBorder(BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Import_JavaScript"))); |
|
|
|
importedJsPane.setBorder(BorderFactory.createTitledBorder(new ModLineBorder(ModLineBorder.TOP), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_ReportServerP_Import_JavaScript"))); |
|
|
|
return importedJsPane; |
|
|
|
return BidiUtils.applyOrientationByLocale(importedJsPane); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|