|
|
|
@ -22,13 +22,13 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
public class ECReportPreviewPane extends UINoOpaquePanel implements ThemePreviewed<ReportTheme> { |
|
|
|
|
private List<AbstractPreviewCell> headerTitleCellList = new ArrayList<>(); |
|
|
|
|
private List<AbstractPreviewCell> headerCellList = new ArrayList<>(); |
|
|
|
|
private List<AbstractPreviewCell> titleCellList = new ArrayList<>(); |
|
|
|
|
private List<AbstractPreviewCell> contentCellList = new ArrayList<>(); |
|
|
|
|
private List<AbstractPreviewCell> highLightCellList = new ArrayList<>(); |
|
|
|
|
private final List<AbstractPreviewCell> headerTitleCellList = new ArrayList<>(); |
|
|
|
|
private final List<AbstractPreviewCell> headerCellList = new ArrayList<>(); |
|
|
|
|
private final List<AbstractPreviewCell> titleCellList = new ArrayList<>(); |
|
|
|
|
private final List<AbstractPreviewCell> contentCellList = new ArrayList<>(); |
|
|
|
|
private final List<AbstractPreviewCell> highLightCellList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
private PreviewPane previewPane; |
|
|
|
|
private final PreviewPane previewPane; |
|
|
|
|
|
|
|
|
|
public ECReportPreviewPane() { |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
@ -58,26 +58,26 @@ public class ECReportPreviewPane extends UINoOpaquePanel implements ThemePreview
|
|
|
|
|
|
|
|
|
|
private JPanel createNorthPane() { |
|
|
|
|
JPanel northPane = FRGUIPaneFactory.createBorderLayout_NO_Opaque_Pane(); |
|
|
|
|
AbstractPreviewCell bigTitleCell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Big_Title")); |
|
|
|
|
AbstractPreviewCell bigTitleCell = new PreviewCell(Toolkit.i18nText("Design_Basic_Template_Theme_Profile_Pane_Cell_Style_Big_Title")); |
|
|
|
|
bigTitleCell.setPreferredSize(new Dimension(615, 46)); |
|
|
|
|
headerTitleCellList.add(bigTitleCell); |
|
|
|
|
northPane.add(bigTitleCell, BorderLayout.NORTH); |
|
|
|
|
CornerPreviewCell cornerCell = new CornerPreviewCell(new String[]{Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Product"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Data"), Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Statistical_Dimension")}, |
|
|
|
|
CornerPreviewCell cornerCell = new CornerPreviewCell(new String[]{Toolkit.i18nText("Fine-Design_Basic_Column_Name"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Data"), Toolkit.i18nText("Design_Basic_Template_Theme_Profile_Pane_Row_Name")}, |
|
|
|
|
new Point2D[]{new Point(159, 71), new Point(225, 49)}); |
|
|
|
|
cornerCell.setPreferredSize(new Dimension(225, 71)); |
|
|
|
|
headerCellList.add(cornerCell); |
|
|
|
|
northPane.add(cornerCell, BorderLayout.WEST); |
|
|
|
|
JPanel centerPane = FRGUIPaneFactory.createBorderLayout_NO_Opaque_Pane(); |
|
|
|
|
northPane.add(centerPane, BorderLayout.CENTER); |
|
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Statistical_By_Area")); |
|
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Small_Title")); |
|
|
|
|
titleCellList.add(cell); |
|
|
|
|
cell.setPreferredSize(new Dimension(308, 38)); |
|
|
|
|
centerPane.add(cell, BorderLayout.NORTH); |
|
|
|
|
JPanel eastSouthPane = new UINoOpaquePanel(new GridLayout()); |
|
|
|
|
PreviewCell cell1 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_East_China")); |
|
|
|
|
PreviewCell cell2 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_South_China")); |
|
|
|
|
PreviewCell cell3 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Subtotal")); |
|
|
|
|
PreviewCell cell1 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
|
PreviewCell cell2 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
|
PreviewCell cell3 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
|
headerCellList.add(cell1); |
|
|
|
|
headerCellList.add(cell2); |
|
|
|
|
headerCellList.add(cell3); |
|
|
|
@ -92,13 +92,13 @@ public class ECReportPreviewPane extends UINoOpaquePanel implements ThemePreview
|
|
|
|
|
JPanel centerPane = FRGUIPaneFactory.createBorderLayout_NO_Opaque_Pane(); |
|
|
|
|
JPanel westPane = FRGUIPaneFactory.createBorderLayout_NO_Opaque_Pane(); |
|
|
|
|
centerPane.add(westPane, BorderLayout.WEST); |
|
|
|
|
PreviewCell cell1 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Drink")); |
|
|
|
|
PreviewCell cell1 = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Small_Title")); |
|
|
|
|
titleCellList.add(cell1); |
|
|
|
|
cell1.setPreferredSize(new Dimension(112, 153)); |
|
|
|
|
westPane.add(cell1, BorderLayout.WEST); |
|
|
|
|
JPanel gridPane = new UINoOpaquePanel(new GridLayout(5, 1)); |
|
|
|
|
for (int i = 0; i < 5; i++) { |
|
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Template_Theme_Profile_Pane_EC_Apple_Juice")); |
|
|
|
|
PreviewCell cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Header")); |
|
|
|
|
cell.setPreferredSize(new Dimension(113, 31)); |
|
|
|
|
headerCellList.add(cell); |
|
|
|
|
gridPane.add(cell); |
|
|
|
@ -108,13 +108,15 @@ public class ECReportPreviewPane extends UINoOpaquePanel implements ThemePreview
|
|
|
|
|
JPanel innerCenterPane = new UINoOpaquePanel(new GridLayout(5, 3)); |
|
|
|
|
centerPane.add(innerCenterPane, BorderLayout.CENTER); |
|
|
|
|
for (int i = 0; i < 15; i++) { |
|
|
|
|
PreviewCell cell = new PreviewCell("35600"); |
|
|
|
|
cell.setPreferredSize(new Dimension(123, 31)); |
|
|
|
|
PreviewCell cell ; |
|
|
|
|
if ((i + 1) % 3 == 0) { |
|
|
|
|
cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Highlight_Text")); |
|
|
|
|
highLightCellList.add(cell); |
|
|
|
|
} else { |
|
|
|
|
cell = new PreviewCell(Toolkit.i18nText("Fine-Design_Basic_Predefined_Style_Main_Text")); |
|
|
|
|
contentCellList.add(cell); |
|
|
|
|
} |
|
|
|
|
cell.setPreferredSize(new Dimension(123, 31)); |
|
|
|
|
innerCenterPane.add(cell); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|