Class ColumnBuilders
java.lang.Object
net.sf.dynamicreports.report.builder.column.ColumnBuilders
A set of methods of creating report columns.
It is used to display data in a multi-column layout.
It is used to display data in a multi-column layout.
- Author:
- Ricardo Mariaca
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanColumn
(String fieldName) Creates a new boolean column.
It shows a boolean value either as a text or as an image.booleanColumn
(String title, String fieldName) Creates a new boolean column.
It shows a boolean value either as a text or as an image.booleanColumn
(String title, FieldBuilder<Boolean> field) Creates a new boolean column.
It shows a boolean value either as a text or as an image.booleanColumn
(String title, DRIExpression<Boolean> expression) Creates a new boolean column.
It shows a boolean value either as a text or as an image.booleanColumn
(FieldBuilder<Boolean> field) Creates a new boolean column.
It shows a boolean value either as a text or as an image.booleanColumn
(DRIExpression<Boolean> expression) Creates a new boolean column.
It shows a boolean value either as a text or as an image.<T> TextColumnBuilder<T>
Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
column
(String title, String fieldName, DRIDataType<? super T, T> dataType) Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
column
(String title, FieldBuilder<T> field) Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
column
(String fieldName, DRIDataType<? super T, T> dataType) Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
column
(String title, DRIExpression<T> expression) Creates a new expression column.
The column values are defined in an expression.<T> TextColumnBuilder<T>
column
(FieldBuilder<T> field) Creates a new column.
It is used to show values from the data source.<T> TextColumnBuilder<T>
column
(DRIExpression<T> expression) Creates a new expression column.
The column values are defined in an expression.Creates a new row number column.
It displays row numbers, the row number is reset on each new column.columnRowNumberColumn
(String title) Creates a new row number column.
It displays row numbers, the row number is reset on each new column.componentColumn
(String title, ComponentBuilder<?, ?> component) Creates a new component column.
It is used to display custom components (e.g.componentColumn
(ComponentBuilder<?, ?> component) Creates a new component column.
It is used to display custom components (e.g.Creates a new empty column.emptyColumn
(boolean showTitle, boolean showDetailRows) Creates a new empty column.Creates a new row number column.
It displays row numbers, the row number is reset on each new page.pageRowNumberColumn
(String title) Creates a new row number column.
It displays row numbers, the row number is reset on each new page.percentageColumn
(String fieldName, Class<? extends Number> valueClass) Creates a new percentage column.
It calculates percentage values from field values.percentageColumn
(String title, String fieldName, Class<? extends Number> valueClass) Creates a new percentage column.
It calculates percentage values from field values.percentageColumn
(String title, ValueColumnBuilder<?, ? extends Number> column) Creates a new percentage column.
It calculates percentage values from column values.percentageColumn
(String title, FieldBuilder<? extends Number> field) Creates a new percentage column.
It calculates percentage values from field values.percentageColumn
(ValueColumnBuilder<?, ? extends Number> column) Creates a new percentage column.
It calculates percentage values from column values.percentageColumn
(FieldBuilder<? extends Number> field) Creates a new percentage column.
It calculates percentage values from field values.Creates a new row number column.
It displays row numbers.reportRowNumberColumn
(String title) Creates a new row number column.
It displays row numbers.
-
Constructor Details
-
ColumnBuilders
public ColumnBuilders()
-
-
Method Details
-
column
Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
fieldName
- the name of the fieldvalueClass
- the field value class- Returns:
- a column builder
-
column
Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
title
- the column titlefieldName
- the name of the fieldvalueClass
- the field value class- Returns:
- a column builder
-
column
Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
fieldName
- the name of the fielddataType
- the field data type- Returns:
- a column builder
-
column
public <T> TextColumnBuilder<T> column(String title, String fieldName, DRIDataType<? super T, T> dataType) Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
title
- the column titlefieldName
- the name of the fielddataType
- the field data type- Returns:
- a column builder
-
column
Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
field
- the field definition- Returns:
- a column builder
-
column
Creates a new column.
It is used to show values from the data source.- Type Parameters:
T
- a T object.- Parameters:
title
- the column titlefield
- the field definition- Returns:
- a column builder
-
column
Creates a new expression column.
The column values are defined in an expression.- Type Parameters:
T
- a T object.- Parameters:
expression
- the value expression- Returns:
- a column builder
-
column
Creates a new expression column.
The column values are defined in an expression.- Type Parameters:
T
- a T object.- Parameters:
title
- the column titleexpression
- the value expression- Returns:
- a column builder
-
percentageColumn
Creates a new percentage column.
It calculates percentage values from column values.- Parameters:
column
- the column definition- Returns:
- a column builder
-
percentageColumn
public PercentageColumnBuilder percentageColumn(String title, ValueColumnBuilder<?, ? extends Number> column) Creates a new percentage column.
It calculates percentage values from column values.- Parameters:
title
- the column titlecolumn
- the column definition- Returns:
- a column builder
-
percentageColumn
public PercentageColumnBuilder percentageColumn(String fieldName, Class<? extends Number> valueClass) Creates a new percentage column.
It calculates percentage values from field values.- Parameters:
fieldName
- the name of the fieldvalueClass
- the field value class- Returns:
- a column builder
-
percentageColumn
public PercentageColumnBuilder percentageColumn(String title, String fieldName, Class<? extends Number> valueClass) Creates a new percentage column.
It calculates percentage values from field values.- Parameters:
title
- the column titlefieldName
- the name of the fieldvalueClass
- the field value class- Returns:
- a column builder
-
percentageColumn
Creates a new percentage column.
It calculates percentage values from field values.- Parameters:
field
- the field definition- Returns:
- a column builder
-
percentageColumn
Creates a new percentage column.
It calculates percentage values from field values.- Parameters:
title
- the column titlefield
- the field definition- Returns:
- a column builder
-
columnRowNumberColumn
Creates a new row number column.
It displays row numbers, the row number is reset on each new column.- Returns:
- a column builder
-
columnRowNumberColumn
Creates a new row number column.
It displays row numbers, the row number is reset on each new column.- Parameters:
title
- the column title- Returns:
- a column builder
-
pageRowNumberColumn
Creates a new row number column.
It displays row numbers, the row number is reset on each new page.- Returns:
- a column builder
-
pageRowNumberColumn
Creates a new row number column.
It displays row numbers, the row number is reset on each new page.- Parameters:
title
- the column title- Returns:
- a column builder
-
reportRowNumberColumn
Creates a new row number column.
It displays row numbers.- Returns:
- a column builder
-
reportRowNumberColumn
Creates a new row number column.
It displays row numbers.- Parameters:
title
- the column title- Returns:
- a column builder
-
componentColumn
Creates a new component column.
It is used to display custom components (e.g. images or complex content) in columns.- Parameters:
component
- the component definition- Returns:
- a column builder
-
componentColumn
Creates a new component column.
It is used to display custom components (e.g. images or complex content) in columns.- Parameters:
title
- the column titlecomponent
- the component definition- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
fieldName
- the name of the field- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
title
- the column titlefieldName
- the name of the field- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
field
- the field definition- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
title
- the column titlefield
- the field definition- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
expression
- the boolean value expression- Returns:
- a column builder
-
booleanColumn
Creates a new boolean column.
It shows a boolean value either as a text or as an image.- Parameters:
title
- the column titleexpression
- the boolean value expression- Returns:
- a column builder
-
emptyColumn
Creates a new empty column.- Returns:
- a column builder
-
emptyColumn
Creates a new empty column.- Parameters:
showTitle
- show column titleshowDetailRows
- show detail rows- Returns:
- a column builder
-