public class CrosstabBuilder extends Object
Constructor and Description |
---|
CrosstabBuilder() |
Modifier and Type | Method and Description |
---|---|
CrosstabBuilder |
addColumn(DJCrosstabColumn col)
Add a column to the crosstab.
|
CrosstabBuilder |
addColumn(String title,
String property,
String className,
boolean showTotal)
|
CrosstabBuilder |
addColumn(String title,
String property,
String className,
boolean showTotal,
String totalLegend) |
CrosstabBuilder |
addColumn(String title,
String property,
String className,
boolean showTotal,
Style headerStyle,
Style totalStyle,
Style totalHeaderStyle)
|
CrosstabBuilder |
addInvisibleMeasure(String property,
String className,
String title)
Adds a measure to the crosstab.
|
CrosstabBuilder |
addMeasure(DJCrosstabMeasure measure) |
CrosstabBuilder |
addMeasure(String property,
String className,
DJCalculation operation,
String title,
Style style)
Adds a measure to the crosstab.
|
CrosstabBuilder |
addMeasure(String property,
String className,
DJCalculation operation,
String title,
Style style,
boolean isPercentage) |
CrosstabBuilder |
addMeasure(String property,
String className,
DJCalculation operation,
String title,
Style style,
DJValueFormatter valueFormatter) |
CrosstabBuilder |
addMeasure(String property,
String className,
DJCalculation operation,
String title,
Style style,
DJValueFormatter valueFormatter,
boolean isPercentage) |
CrosstabBuilder |
addMeasure(String property,
String className,
DJCalculation operation,
String title,
Style style,
DJValueFormatter valueFormatter,
DJCRosstabMeasurePrecalculatedTotalProvider totalProvider) |
CrosstabBuilder |
addRow(DJCrosstabRow row)
Add a row to the crosstab.
|
CrosstabBuilder |
addRow(String title,
String property,
String className,
boolean showTotal)
|
CrosstabBuilder |
addRow(String title,
String property,
String className,
boolean showTotal,
String totalLegend) |
CrosstabBuilder |
addRow(String title,
String property,
String className,
boolean showTotal,
Style headerStyle,
Style totalStyle,
Style totalHeaderStyle)
|
DJCrosstab |
build()
Build the crosstab.
|
CrosstabBuilder |
setAutomaticTitle(boolean bool) |
CrosstabBuilder |
setBottomSpace(int bottomSpace) |
CrosstabBuilder |
setCaption(DJLabel caption) |
CrosstabBuilder |
setCellBorder(Border cellBorder) |
CrosstabBuilder |
setCellDimension(int height,
int width) |
CrosstabBuilder |
setCellHeight(int height) |
CrosstabBuilder |
setCellWidth(int width) |
CrosstabBuilder |
setColorScheme(CrossTabColorShema colorScheme) |
CrosstabBuilder |
setColorScheme(int colorScheme) |
CrosstabBuilder |
setColumnHeaderHeight(int height) |
CrosstabBuilder |
setColumnStyles(Style headerStyle,
Style totalStyle,
Style totalHeaderStyle)
Should be called after all columns have been created
|
CrosstabBuilder |
setDatasource(String expression,
int origin,
int type) |
CrosstabBuilder |
setDatasource(String expression,
int origin,
int type,
boolean preSorted) |
CrosstabBuilder |
setHeaderStyle(Style headerStyle) |
CrosstabBuilder |
setHeight(int height)
The height if the whole corsstab.
|
CrosstabBuilder |
setMainHeaderTitle(String title) |
CrosstabBuilder |
setRowHeaderWidth(int width) |
CrosstabBuilder |
setRowStyles(Style headerStyle,
Style totalStyle,
Style totalHeaderStyle)
Should be called after all rows have been created
|
CrosstabBuilder |
setTopSpace(int topSpace) |
CrosstabBuilder |
setUseFullWidth(boolean useFullWidth) |
CrosstabBuilder |
setWidth(int width) |
CrosstabBuilder |
useMainReportDatasource(boolean preSorted)
To use main report datasource.
|
public DJCrosstab build()
public CrosstabBuilder setHeight(int height)
height
- public CrosstabBuilder setWidth(int width)
public CrosstabBuilder setHeaderStyle(Style headerStyle)
public CrosstabBuilder setDatasource(String expression, int origin, int type)
public CrosstabBuilder setDatasource(String expression, int origin, int type, boolean preSorted)
public CrosstabBuilder useMainReportDatasource(boolean preSorted)
preSorted
- public CrosstabBuilder setUseFullWidth(boolean useFullWidth)
public CrosstabBuilder setCellBorder(Border cellBorder)
public CrosstabBuilder addMeasure(String property, String className, DJCalculation operation, String title, Style style)
property
- className
- operation
- title
- style
- public CrosstabBuilder addMeasure(String property, String className, DJCalculation operation, String title, Style style, boolean isPercentage)
public CrosstabBuilder addMeasure(DJCrosstabMeasure measure)
public CrosstabBuilder addInvisibleMeasure(String property, String className, String title)
property
- className
- title
- public CrosstabBuilder addRow(DJCrosstabRow row)
row
- public CrosstabBuilder addColumn(DJCrosstabColumn col)
col
- public CrosstabBuilder setColorScheme(int colorScheme)
public CrosstabBuilder setColorScheme(CrossTabColorShema colorScheme)
public CrosstabBuilder setMainHeaderTitle(String title)
public CrosstabBuilder setAutomaticTitle(boolean bool)
public CrosstabBuilder setBottomSpace(int bottomSpace)
public CrosstabBuilder setTopSpace(int topSpace)
public CrosstabBuilder addColumn(String title, String property, String className, boolean showTotal)
title
- property
- className
- showTotal
- public CrosstabBuilder addColumn(String title, String property, String className, boolean showTotal, String totalLegend)
public CrosstabBuilder addColumn(String title, String property, String className, boolean showTotal, Style headerStyle, Style totalStyle, Style totalHeaderStyle)
title
- property
- className
- showTotal
- headerStyle
- totalStyle
- totalHeaderStyle
- public CrosstabBuilder addRow(String title, String property, String className, boolean showTotal)
title
- property
- className
- showTotal
- public CrosstabBuilder addRow(String title, String property, String className, boolean showTotal, String totalLegend)
public CrosstabBuilder addRow(String title, String property, String className, boolean showTotal, Style headerStyle, Style totalStyle, Style totalHeaderStyle)
title
- property
- className
- showTotal
- headerStyle
- totalStyle
- totalHeaderStyle
- public CrosstabBuilder setRowStyles(Style headerStyle, Style totalStyle, Style totalHeaderStyle)
headerStyle
- totalStyle
- totalHeaderStyle
- public CrosstabBuilder setColumnStyles(Style headerStyle, Style totalStyle, Style totalHeaderStyle)
headerStyle
- totalStyle
- totalHeaderStyle
- public CrosstabBuilder setCellWidth(int width)
public CrosstabBuilder setColumnHeaderHeight(int height)
public CrosstabBuilder setCellDimension(int height, int width)
public CrosstabBuilder setCellHeight(int height)
public CrosstabBuilder setRowHeaderWidth(int width)
public CrosstabBuilder setCaption(DJLabel caption)
public CrosstabBuilder addMeasure(String property, String className, DJCalculation operation, String title, Style style, DJValueFormatter valueFormatter)
public CrosstabBuilder addMeasure(String property, String className, DJCalculation operation, String title, Style style, DJValueFormatter valueFormatter, boolean isPercentage)
public CrosstabBuilder addMeasure(String property, String className, DJCalculation operation, String title, Style style, DJValueFormatter valueFormatter, DJCRosstabMeasurePrecalculatedTotalProvider totalProvider)
Copyright © 2006–2015 FDV Solutions. All rights reserved.