Class ColumnBuilder<T extends ColumnBuilder<T,U>,U extends DRColumn<?>>
java.lang.Object
net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
net.sf.dynamicreports.report.builder.column.ColumnBuilder<T,U>
- All Implemented Interfaces:
Serializable
,ColumnGridComponentBuilder
- Direct Known Subclasses:
BooleanColumnBuilder
,ComponentColumnBuilder
,ValueColumnBuilder
public abstract class ColumnBuilder<T extends ColumnBuilder<T,U>,U extends DRColumn<?>>
extends AbstractBuilder<T,U>
implements ColumnGridComponentBuilder
Abstract ColumnBuilder class.
- Author:
- Ricardo Mariaca, Jan Moxter
- See Also:
-
Field Summary
Fields inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
builded
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddTitleProperty
(String name, String value) Adds a jasper property to the column title.addTitleProperty
(String name, DRIExpression<String> valueExpression) Adds a jasper property to the column title.addTitleProperty
(DRIPropertyExpression propertyExpression) Adds a jasper property to the column title.getColumn.protected DRComponent
getComponent.setPrintWhenExpression
(DRIExpression<Boolean> printWhenExpression) Sets the print when expression.setStyle
(ReportStyleBuilder style) Sets the column value style.Sets the column title.setTitle
(DRIExpression<?> titleExpression) Sets the column title.setTitleFixedHeight
(Integer height) Sets the fixed height of a column title.setTitleFixedRows
(Integer rows) This method is used to define the fixed height of a column title.setTitleHeight
(Integer height) Sets the preferred height of a column title.setTitleMinHeight
(Integer height) Sets the minimum height of a column title.setTitleMinRows
(Integer rows) This method is used to define the minimum height of a column title.setTitleRows
(Integer rows) This method is used to define the preferred height of a column title.setTitleStretchWithOverflow
(Boolean stretchWithOverflow) Deprecated.setTitleStyle
(ReportStyleBuilder titleStyle) Sets the column title style.setTitleTextAdjust
(TextAdjust textAdjust) setTitleTextAdjust.Methods inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
build, configure, getObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.dynamicreports.report.builder.grid.ColumnGridComponentBuilder
build
-
Constructor Details
-
ColumnBuilder
Constructor for ColumnBuilder.
- Parameters:
column
- a U object.
-
-
Method Details
-
setTitle
Sets the column title.- Parameters:
titleExpression
- the title expression- Returns:
- a column builder
-
setTitle
Sets the column title.- Parameters:
title
- the title- Returns:
- a column builder
-
setTitleStyle
Sets the column title style.- Parameters:
titleStyle
- the title style- Returns:
- a column builder
-
setStyle
Sets the column value style.- Parameters:
style
- the value style- Returns:
- a column builder
-
setPrintWhenExpression
Sets the print when expression. The expression must be a type of Boolean and it decides whether or not a column value will be printed.- Parameters:
printWhenExpression
- the print expression- Returns:
- a column builder
-
setTitleRows
This method is used to define the preferred height of a column title. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of preferred rows >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifrows
is < 0
-
setTitleFixedRows
This method is used to define the fixed height of a column title. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of fixed rows >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifrows
is < 0
-
setTitleMinRows
This method is used to define the minimum height of a column title. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of minimum rows >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifrows
is < 0
-
setTitleHeight
Sets the preferred height of a column title.- Parameters:
height
- the column title preferred height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setTitleFixedHeight
Sets the fixed height of a column title.- Parameters:
height
- the column title fixed height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setTitleMinHeight
Sets the minimum height of a column title.- Parameters:
height
- the column title minimum height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setTitleStretchWithOverflow
Deprecated.replaced bysetTitleTextAdjust(TextAdjust)
setTitleStretchWithOverflow.
- Parameters:
stretchWithOverflow
- aBoolean
object.- Returns:
- a T object.
-
setTitleTextAdjust
setTitleTextAdjust.
- Parameters:
textAdjust
- aTextAdjust
object.- Returns:
- a T object.
-
addTitleProperty
Adds a jasper property to the column title.- Parameters:
propertyExpression
- the property expression- Returns:
- a column builder
-
addTitleProperty
Adds a jasper property to the column title.- Parameters:
name
- the property namevalueExpression
- the property value expression- Returns:
- a column builder
-
addTitleProperty
Adds a jasper property to the column title.- Parameters:
name
- the property namevalue
- the property value- Returns:
- a column builder
-
getComponent
getComponent.
- Returns:
- a
DRComponent
object.
-
getColumn
getColumn.
- Returns:
- a U object.
-
setTitleTextAdjust(TextAdjust)