|
|
@ -63,14 +63,16 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile |
|
|
|
protected void init() { |
|
|
|
protected void init() { |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
previewPane = createPreviewPane(); |
|
|
|
previewPane = createPreviewPane(); |
|
|
|
previewPane.setPreferredSize(new Dimension(500, 60)); |
|
|
|
if (previewPane != null) { |
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
previewPane.setPreferredSize(new Dimension(500, 60)); |
|
|
|
TitledBorder titledBorder = GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Preview"), null); |
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
titledBorder.setTitleFont(FRFont.getInstance("PingFangSC-Regular", Font.PLAIN, 9, Color.BLUE)); |
|
|
|
TitledBorder titledBorder = GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Preview"), null); |
|
|
|
northPane.setBorder(titledBorder); |
|
|
|
titledBorder.setTitleFont(FRFont.getInstance("PingFangSC-Regular", Font.PLAIN, 9, Color.BLUE)); |
|
|
|
northPane.setPreferredSize(new Dimension(500, 83)); |
|
|
|
northPane.setBorder(titledBorder); |
|
|
|
northPane.add(previewPane, BorderLayout.CENTER); |
|
|
|
northPane.setPreferredSize(new Dimension(500, 83)); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
northPane.add(previewPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
} |
|
|
|
createConfigPane(); |
|
|
|
createConfigPane(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -218,9 +220,11 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile |
|
|
|
protected abstract MobileTemplateStyle getDefaultTemplateStyle(); |
|
|
|
protected abstract MobileTemplateStyle getDefaultTemplateStyle(); |
|
|
|
|
|
|
|
|
|
|
|
public void updatePreviewPane() { |
|
|
|
public void updatePreviewPane() { |
|
|
|
previewPane.populateConfig(updateConfig()); |
|
|
|
if (previewPane != null) { |
|
|
|
previewPane.setBackground(previewPane.getInitialColor()); |
|
|
|
previewPane.populateConfig(updateConfig()); |
|
|
|
previewPane.repaint(); |
|
|
|
previewPane.setBackground(previewPane.getInitialColor()); |
|
|
|
|
|
|
|
previewPane.repaint(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public abstract void populateSubStyle(MobileTemplateStyle ob); |
|
|
|
public abstract void populateSubStyle(MobileTemplateStyle ob); |
|
|
|