|
|
|
@ -10,11 +10,13 @@ import com.fr.design.gui.ibutton.UIButton;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.design.mainframe.theme.TemplateThemeListPane; |
|
|
|
|
import com.fr.design.mainframe.theme.TemplateThemeManagePane; |
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.Window; |
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
@ -25,13 +27,12 @@ import java.awt.event.ActionListener;
|
|
|
|
|
* Created by Starryi on 2021/8/13 |
|
|
|
|
*/ |
|
|
|
|
public class TemplateThemeManageDialog extends TemplateThemeDialog { |
|
|
|
|
public static final int CONTENT_WIDTH = 660; |
|
|
|
|
public static final int CONTENT_HEIGHT = 570; |
|
|
|
|
|
|
|
|
|
private final TemplateThemeManageDialogContentPane contentPane; |
|
|
|
|
|
|
|
|
|
public TemplateThemeManageDialog(Window parent) { |
|
|
|
|
super(parent, Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Title"), CONTENT_WIDTH, CONTENT_HEIGHT); |
|
|
|
|
super(parent, Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Manager_Dialog_Title"), |
|
|
|
|
TemplateThemeManageDialogContentPane.CONTENT_WIDTH, TemplateThemeManageDialogContentPane.CONTENT_HEIGHT); |
|
|
|
|
contentPane = new TemplateThemeManageDialogContentPane(); |
|
|
|
|
|
|
|
|
|
setContentPane(createDialogContentPane(contentPane, new UIButton[]{ createCompleteButton() })); |
|
|
|
@ -55,12 +56,16 @@ public class TemplateThemeManageDialog extends TemplateThemeDialog {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class TemplateThemeManageDialogContentPane extends JPanel { |
|
|
|
|
public static final int CONTENT_WIDTH = TemplateThemeManagePane.CONTENT_WIDTH + 24; |
|
|
|
|
public static final int CONTENT_HEIGHT = TemplateThemeManagePane.CONTENT_HEIGHT + 40; |
|
|
|
|
|
|
|
|
|
private final TemplateThemeManagePane<FormTheme> formThemesManagerPane; |
|
|
|
|
private final TemplateThemeManagePane<ReportTheme> reportThemesManagerPane; |
|
|
|
|
|
|
|
|
|
public TemplateThemeManageDialogContentPane() { |
|
|
|
|
setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
|
setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10)); |
|
|
|
|
setPreferredSize(new Dimension(CONTENT_WIDTH, CONTENT_HEIGHT)); |
|
|
|
|
|
|
|
|
|
UITabbedPane tabbedPane = new UITabbedPane(); |
|
|
|
|
add(tabbedPane, BorderLayout.NORTH); |
|
|
|
|