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