|
|
@ -24,6 +24,8 @@ public class ECPreviewPane extends AbstractECPreviewPane { |
|
|
|
private final List<AbstractPreviewCell> headerCellList = new ArrayList<>(); |
|
|
|
private final List<AbstractPreviewCell> headerCellList = new ArrayList<>(); |
|
|
|
private final List<AbstractPreviewCell> contentCellList = new ArrayList<>(); |
|
|
|
private final List<AbstractPreviewCell> contentCellList = new ArrayList<>(); |
|
|
|
private final List<AbstractPreviewCell> highLightCellList = new ArrayList<>(); |
|
|
|
private final List<AbstractPreviewCell> highLightCellList = new ArrayList<>(); |
|
|
|
|
|
|
|
private static final int COL_COUNT = 5; |
|
|
|
|
|
|
|
private static final int CONTENT_ROW_COUNT = 2; |
|
|
|
|
|
|
|
|
|
|
|
public ECPreviewPane() { |
|
|
|
public ECPreviewPane() { |
|
|
|
this.setPreferredSize(new Dimension(517, 147)); |
|
|
|
this.setPreferredSize(new Dimension(517, 147)); |
|
|
@ -31,7 +33,7 @@ public class ECPreviewPane extends AbstractECPreviewPane { |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
JPanel titlePane = new UINoOpaquePanel(new GridLayout()); |
|
|
|
JPanel titlePane = new UINoOpaquePanel(new GridLayout()); |
|
|
|
this.add(titlePane, BorderLayout.NORTH); |
|
|
|
this.add(titlePane, BorderLayout.NORTH); |
|
|
|
for (int i = 0; i < 5; i++) { |
|
|
|
for (int i = 0; i < COL_COUNT; i++) { |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
cell.setPreferredSize(new Dimension(103, 36)); |
|
|
|
cell.setPreferredSize(new Dimension(103, 36)); |
|
|
|
titlePane.add(cell); |
|
|
|
titlePane.add(cell); |
|
|
@ -39,7 +41,7 @@ public class ECPreviewPane extends AbstractECPreviewPane { |
|
|
|
} |
|
|
|
} |
|
|
|
JPanel contentPane = new UINoOpaquePanel(new GridLayout(2, 5, 0, 0)); |
|
|
|
JPanel contentPane = new UINoOpaquePanel(new GridLayout(2, 5, 0, 0)); |
|
|
|
this.add(contentPane, BorderLayout.CENTER); |
|
|
|
this.add(contentPane, BorderLayout.CENTER); |
|
|
|
for (int i = 0; i < 10; i++) { |
|
|
|
for (int i = 0; i < COL_COUNT * CONTENT_ROW_COUNT; i++) { |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Main_Text")); |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Main_Text")); |
|
|
|
cell.setPreferredSize(new Dimension(103, 33)); |
|
|
|
cell.setPreferredSize(new Dimension(103, 33)); |
|
|
|
contentPane.add(cell); |
|
|
|
contentPane.add(cell); |
|
|
@ -48,7 +50,7 @@ public class ECPreviewPane extends AbstractECPreviewPane { |
|
|
|
|
|
|
|
|
|
|
|
JPanel endPane = new UINoOpaquePanel(new GridLayout()); |
|
|
|
JPanel endPane = new UINoOpaquePanel(new GridLayout()); |
|
|
|
this.add(endPane, BorderLayout.SOUTH); |
|
|
|
this.add(endPane, BorderLayout.SOUTH); |
|
|
|
for (int i = 0; i < 5; i++) { |
|
|
|
for (int i = 0; i < COL_COUNT; i++) { |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Highlight_Text")); |
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Highlight_Text")); |
|
|
|
cell.setPreferredSize(new Dimension(103, 33)); |
|
|
|
cell.setPreferredSize(new Dimension(103, 33)); |
|
|
|
endPane.add(cell); |
|
|
|
endPane.add(cell); |
|
|
|