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