|
|
@ -63,6 +63,7 @@ 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(); |
|
|
|
|
|
|
|
if (previewPane != null) { |
|
|
|
previewPane.setPreferredSize(new Dimension(500, 60)); |
|
|
|
previewPane.setPreferredSize(new Dimension(500, 60)); |
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
TitledBorder titledBorder = GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Preview"), null); |
|
|
|
TitledBorder titledBorder = GUICoreUtils.createTitledBorder(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Preview"), null); |
|
|
@ -71,6 +72,7 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile |
|
|
|
northPane.setPreferredSize(new Dimension(500, 83)); |
|
|
|
northPane.setPreferredSize(new Dimension(500, 83)); |
|
|
|
northPane.add(previewPane, BorderLayout.CENTER); |
|
|
|
northPane.add(previewPane, BorderLayout.CENTER); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
} |
|
|
|
createConfigPane(); |
|
|
|
createConfigPane(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -218,10 +220,12 @@ public abstract class MobileTemplateStyleDefinePane extends BasicBeanPane<Mobile |
|
|
|
protected abstract MobileTemplateStyle getDefaultTemplateStyle(); |
|
|
|
protected abstract MobileTemplateStyle getDefaultTemplateStyle(); |
|
|
|
|
|
|
|
|
|
|
|
public void updatePreviewPane() { |
|
|
|
public void updatePreviewPane() { |
|
|
|
|
|
|
|
if (previewPane != null) { |
|
|
|
previewPane.populateConfig(updateConfig()); |
|
|
|
previewPane.populateConfig(updateConfig()); |
|
|
|
previewPane.setBackground(previewPane.getInitialColor()); |
|
|
|
previewPane.setBackground(previewPane.getInitialColor()); |
|
|
|
previewPane.repaint(); |
|
|
|
previewPane.repaint(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public abstract void populateSubStyle(MobileTemplateStyle ob); |
|
|
|
public abstract void populateSubStyle(MobileTemplateStyle ob); |
|
|
|
|
|
|
|
|
|
|
|