|
|
|
@ -284,28 +284,24 @@ public class TemplateThemeGridPagesPane extends JPanel {
|
|
|
|
|
tabbedPane = new UITabbedPane(); |
|
|
|
|
tabbedPane.setTabBorderColor(new Color(0xE0E0E1)); |
|
|
|
|
add(tabbedPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
TemplateThemeGridControlPane<FormTheme> formThemesManagerPane = TemplateThemeGridControlPane.createFormThemesManagerPane(window); |
|
|
|
|
/// 去除frm
|
|
|
|
|
//TemplateThemeGridControlPane<FormTheme> formThemesManagerPane = TemplateThemeGridControlPane.createFormThemesManagerPane(window);
|
|
|
|
|
TemplateThemeGridControlPane<ReportTheme> reportThemesManagerPane = TemplateThemeGridControlPane.createReportThemesManagerPane(window); |
|
|
|
|
|
|
|
|
|
tabbedPane.addTab(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Form_Tab"), formThemesManagerPane); |
|
|
|
|
/// 去除frm
|
|
|
|
|
//tabbedPane.addTab(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Form_Tab"), formThemesManagerPane);
|
|
|
|
|
tabbedPane.addTab(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Report_Tab"), reportThemesManagerPane); |
|
|
|
|
|
|
|
|
|
tabbedPane.setSelectedIndex(0); |
|
|
|
|
JTemplate<?,?> template = HistoryTemplateListCache.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
TemplateThemeConfig<? extends TemplateTheme> config = template.getUsingTemplateThemeConfig(); |
|
|
|
|
if (config == reportThemesManagerPane.getConfig()) { |
|
|
|
|
tabbedPane.setSelectedIndex(1); |
|
|
|
|
tabbedPane.setSelectedIndex(0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public TemplateThemeConfig<? extends TemplateTheme> getConfig() { |
|
|
|
|
if (tabbedPane.getSelectedIndex() == 0) { |
|
|
|
|
return FormThemeConfig.getInstance(); |
|
|
|
|
} else { |
|
|
|
|
return ReportThemeConfig.getInstance(); |
|
|
|
|
} |
|
|
|
|
return ReportThemeConfig.getInstance(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|