|
|
|
@ -72,6 +72,7 @@ import static com.fine.swing.ui.layout.Layouts.cell;
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.flex; |
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
import static com.fine.theme.utils.FineUIUtils.wrapComponentWithTitle; |
|
|
|
|
|
|
|
|
|
public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript> { |
|
|
|
@ -136,7 +137,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
extendParametersCheckBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Basic_Export_JS_Extend_Parameters")); |
|
|
|
|
extendParametersCheckBox.setSelected(true); |
|
|
|
|
parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane()); |
|
|
|
|
parameterViewPane.setPreferredSize(FineUIScale.scale(new Dimension(-1, 200))); |
|
|
|
|
parameterViewPane.setPreferredSize(scale(new Dimension(-1, 200))); |
|
|
|
|
parameterViewPane.setVisible(false); |
|
|
|
|
addListener(parameterViewPane); |
|
|
|
|
extendParametersCheckBox.addItemListener(new ItemListener() { |
|
|
|
@ -252,7 +253,7 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
editorPane = new UITableEditorPane<>(new ExportJSTableModel()); |
|
|
|
|
editorPane.setHeaderResizing(false); |
|
|
|
|
editorPane.setPreferredSize(FineUIScale.scale(new Dimension(-1,300))); |
|
|
|
|
editorPane.setPreferredSize(scale(new Dimension(-1,300))); |
|
|
|
|
this.add(wrapComponentWithTitle(editorPane, Toolkit.i18nText("Fine-Design_Basic_Export_JS_Template_Other"))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -301,9 +302,9 @@ public class ExportJavaScriptPane extends AbstractHyperLinkPane<ExportJavaScript
|
|
|
|
|
this.setDefaultEditor(ParameterCombobox.class, new ParameterCombobox()); |
|
|
|
|
this.setDefaultEditor(ParameterSettingButton.class, new ParameterSettingButton()); |
|
|
|
|
this.setDefaultRenderer(ParameterSettingButton.class, new ParameterSettingButton()); |
|
|
|
|
this.createTable().getColumnModel().getColumn(2).setMaxWidth(FineUIScale.scale(60)); |
|
|
|
|
this.createTable().getColumnModel().getColumn(4).setMaxWidth(FineUIScale.scale(60)); |
|
|
|
|
this.createTable().getColumnModel().getColumn(5).setMaxWidth(FineUIScale.scale(50)); |
|
|
|
|
this.createTable().getColumnModel().getColumn(2).setMaxWidth(scale(60)); |
|
|
|
|
this.createTable().getColumnModel().getColumn(4).setMaxWidth(scale(60)); |
|
|
|
|
this.createTable().getColumnModel().getColumn(5).setMaxWidth(scale(50)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|