|
|
|
@ -113,18 +113,7 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile
|
|
|
|
|
outPanel.add(jPanel); |
|
|
|
|
scrollPanel.add(outPanel, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
UITitleSplitLine backgroundSplit = new UITitleSplitLine(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Background"), 520); |
|
|
|
|
backgroundSplit.setPreferredSize(new Dimension(520, 20)); |
|
|
|
|
centerPane.add(backgroundSplit); |
|
|
|
|
|
|
|
|
|
centerPane.add(createBackgroundConfPane()); |
|
|
|
|
|
|
|
|
|
UITitleSplitLine fontSplit = new UITitleSplitLine(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Mobile_Tab_Char"), 520); |
|
|
|
|
fontSplit.setPreferredSize(new Dimension(520, 20)); |
|
|
|
|
centerPane.add(fontSplit); |
|
|
|
|
|
|
|
|
|
centerPane.add(createFontConfPane()); |
|
|
|
|
|
|
|
|
|
createBuiltinConfPane(centerPane); |
|
|
|
|
createExtraConfPane(centerPane); |
|
|
|
|
|
|
|
|
|
scrollPanel.add(centerPane, BorderLayout.CENTER); |
|
|
|
@ -171,6 +160,19 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile
|
|
|
|
|
return jPanel3; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void createBuiltinConfPane(JPanel centerPane) { |
|
|
|
|
UITitleSplitLine backgroundSplit = new UITitleSplitLine(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Background"), 520); |
|
|
|
|
backgroundSplit.setPreferredSize(new Dimension(520, 20)); |
|
|
|
|
centerPane.add(backgroundSplit); |
|
|
|
|
|
|
|
|
|
centerPane.add(createBackgroundConfPane()); |
|
|
|
|
|
|
|
|
|
UITitleSplitLine fontSplit = new UITitleSplitLine(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Mobile_Tab_Char"), 520); |
|
|
|
|
fontSplit.setPreferredSize(new Dimension(520, 20)); |
|
|
|
|
centerPane.add(fontSplit); |
|
|
|
|
|
|
|
|
|
centerPane.add(createFontConfPane()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void createExtraConfPane(JPanel centerPane) { |
|
|
|
|
|
|
|
|
@ -186,8 +188,12 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile
|
|
|
|
|
populateSubStyle(ob); |
|
|
|
|
custom.setSelectedItem(!ob.isCustom() ? com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Default") : |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Engine_Custom")); |
|
|
|
|
initialColorBox.setSelectObject(ob.getInitialColor()); |
|
|
|
|
fontConfPane.populate(ob.getTabFontConfig().getFont()); |
|
|
|
|
if (initialColorBox != null) { |
|
|
|
|
initialColorBox.setSelectObject(ob.getInitialColor()); |
|
|
|
|
} |
|
|
|
|
if (fontConfPane != null) { |
|
|
|
|
fontConfPane.populate(ob.getTabFontConfig().getFont()); |
|
|
|
|
} |
|
|
|
|
updatePreviewPane(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -209,11 +215,15 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile
|
|
|
|
|
} |
|
|
|
|
MobileTemplateStyle ob = updateSubStyle(); |
|
|
|
|
ob.setCustom(custom.getSelectedIndex() == 1); |
|
|
|
|
ob.setInitialColor(initialColorBox.getSelectObject()); |
|
|
|
|
TabFontConfig config = new TabFontConfig(); |
|
|
|
|
config.setSelectColor(ob.getTabFontConfig().getSelectColor()); |
|
|
|
|
config.setFont(fontConfPane.update()); |
|
|
|
|
ob.setTabFontConfig(config); |
|
|
|
|
if (initialColorBox != null) { |
|
|
|
|
ob.setInitialColor(initialColorBox.getSelectObject()); |
|
|
|
|
} |
|
|
|
|
if (fontConfPane != null) { |
|
|
|
|
TabFontConfig config = new TabFontConfig(); |
|
|
|
|
config.setSelectColor(ob.getTabFontConfig().getSelectColor()); |
|
|
|
|
config.setFont(fontConfPane.update()); |
|
|
|
|
ob.setTabFontConfig(config); |
|
|
|
|
} |
|
|
|
|
return ob; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|