Class ValueColumnBuilder<T extends ValueColumnBuilder<T,U>,U>
java.lang.Object
net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
net.sf.dynamicreports.report.builder.column.ColumnBuilder<T,DRValueColumn<U>>
net.sf.dynamicreports.report.builder.column.ValueColumnBuilder<T,U>
- All Implemented Interfaces:
Serializable
,ColumnGridComponentBuilder
- Direct Known Subclasses:
PercentageColumnBuilder
,TextColumnBuilder
public abstract class ValueColumnBuilder<T extends ValueColumnBuilder<T,U>,U>
extends ColumnBuilder<T,DRValueColumn<U>>
Abstract ValueColumnBuilder 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 TypeMethodDescriptionaddProperty
(String name, String value) Adds a jasper property to the column value.addProperty
(String name, DRIExpression<String> valueExpression) Adds a jasper property to the column value.addProperty
(DRIPropertyExpression propertyExpression) Adds a jasper property to the column value.protected DRTextField<U>
getComponent.printInFirstWholeBand.printWhenDetailOverflows.setAnchorName
(String anchorName) setAnchorName.setAnchorName
(DRIExpression<String> anchorNameExpression) setAnchorName.setBookmarkLevel
(Integer bookmarkLevel) setBookmarkLevel.setColumns
(Integer columns) This method is used to define the preferred width of a column.setDataType
(DRIDataType<? super U, U> dataType) Sets the column data type.setFixedColumns
(Integer columns) This method is used to define the fixed width of a column.setFixedHeight
(Integer height) Sets the fixed height of a column.setFixedRows
(Integer rows) This method is used to define the fixed height of a column.setFixedWidth
(Integer width) Sets the fixed width of a column.Sets the preferred height of a column.setHorizontalAlignment
(HorizontalAlignment horizontalAlignment) Deprecated.use setHorizontalTextAlignment insteadsetHorizontalTextAlignment
(HorizontalTextAlignment horizontalTextAlignment) Sets the column value horizontal text alignment.setHyperLink
(HyperLinkBuilder hyperLink) Sets the column value hyperlink.setMinColumns
(Integer columns) This method is used to define the minimum width of a column.setMinHeight
(Integer height) Sets the minimum height of a column.setMinRows
(Integer rows) This method is used to define the minimum height of a column.setMinWidth
(Integer width) Sets the minimum width of a column.setPattern
(String pattern) Sets the column value format pattern.setPattern
(DRIExpression<String> patternExpression) Sets the column value format pattern.setPrintInFirstWholeBand
(Boolean printInFirstWholeBand) setPrintInFirstWholeBand.setPrintRepeatedDetailValues
(Boolean printRepeatedDetailValues) Specifies whether or not print a value if the value is the same as the previous value.setPrintWhenDetailOverflows
(Boolean printWhenDetailOverflows) setPrintWhenDetailOverflows.This method is used to define the preferred height of a column.setStretchWithOverflow
(Boolean stretchWithOverflow) Deprecated.replaced bysetTextAdjust(TextAdjust)
setTextAdjust
(TextAdjust textAdjust) setTextAdjust.protected void
setValueExpression
(DRIExpression<U> valueExpression) setValueExpression.setValueFormatter
(DRIValueFormatter<?, ? super U> valueFormatter) Sets the column value formatter expression.Sets the preferred width of a column.Methods inherited from class net.sf.dynamicreports.report.builder.column.ColumnBuilder
addTitleProperty, addTitleProperty, addTitleProperty, getColumn, setPrintWhenExpression, setStyle, setTitle, setTitle, setTitleFixedHeight, setTitleFixedRows, setTitleHeight, setTitleMinHeight, setTitleMinRows, setTitleRows, setTitleStretchWithOverflow, setTitleStyle, 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
-
ValueColumnBuilder
protected ValueColumnBuilder()Constructor for ValueColumnBuilder.
-
-
Method Details
-
setValueExpression
setValueExpression.
- Parameters:
valueExpression
- aDRIExpression
object.
-
setPrintRepeatedDetailValues
Specifies whether or not print a value if the value is the same as the previous value.- Parameters:
printRepeatedDetailValues
- print repeated detail values- Returns:
- a column builder
-
setHorizontalAlignment
Deprecated.use setHorizontalTextAlignment insteadSets the column value horizontal alignment.- Parameters:
horizontalAlignment
- aHorizontalAlignment
object.- Returns:
- a column builder
-
setHorizontalTextAlignment
Sets the column value horizontal text alignment.- Parameters:
horizontalTextAlignment
- aHorizontalTextAlignment
object.- Returns:
- a column builder
-
setPattern
Sets the column value format pattern.- Parameters:
pattern
- the format pattern- Returns:
- a column builder
-
setPattern
Sets the column value format pattern. The expression must be a type of String.- Parameters:
patternExpression
- the format pattern expression- Returns:
- a column builder
-
setValueFormatter
Sets the column value formatter expression.- Parameters:
valueFormatter
- the value formatter expression- Returns:
- a column builder
-
setDataType
Sets the column data type.- Parameters:
dataType
- the data type- Returns:
- a column builder
-
setColumns
This method is used to define the preferred width of a column. The width is set to thecolumns
multiplied by width of the character m for the font used- Parameters:
columns
- the number of preferred columns >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setFixedColumns
This method is used to define the fixed width of a column. The width is set to thecolumns
multiplied by width of the character m for the font used- Parameters:
columns
- the number of fixed columns >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setMinColumns
This method is used to define the minimum width of a column. The width is set to thecolumns
multiplied by width of the character m for the font used- Parameters:
columns
- the number of minimum columns >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setRows
This method is used to define the preferred height of a column. 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
-
setFixedRows
This method is used to define the fixed height of a column. 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
-
setMinRows
This method is used to define the minimum height of a column. 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
-
setAnchorName
setAnchorName.
- Parameters:
anchorName
- aString
object.- Returns:
- a T object.
-
setAnchorName
setAnchorName.
- Parameters:
anchorNameExpression
- aDRIExpression
object.- Returns:
- a T object.
-
setBookmarkLevel
setBookmarkLevel.
- Parameters:
bookmarkLevel
- aInteger
object.- Returns:
- a T object.
-
setHyperLink
Sets the column value hyperlink.- Parameters:
hyperLink
- the value hyperlink- Returns:
- a column builder
-
setWidth
Sets the preferred width of a column.- Parameters:
width
- the column preferred width >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setFixedWidth
Sets the fixed width of a column.- Parameters:
width
- the column fixed width >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setMinWidth
Sets the minimum width of a column.- Parameters:
width
- the column minimum width >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setHeight
Sets the preferred height of a column.- Parameters:
height
- the column preferred height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setFixedHeight
Sets the fixed height of a column.- Parameters:
height
- the column fixed height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setMinHeight
Sets the minimum height of a column.- Parameters:
height
- the column minimum height >= 0- Returns:
- a column builder
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setStretchWithOverflow
Deprecated.replaced bysetTextAdjust(TextAdjust)
setStretchWithOverflow.
- Parameters:
stretchWithOverflow
- aBoolean
object.- Returns:
- a T object.
-
setTextAdjust
setTextAdjust.
- Parameters:
textAdjust
- aTextAdjust
object.- Returns:
- a T object.
-
printInFirstWholeBand
printInFirstWholeBand.
- Returns:
- a T object.
-
setPrintInFirstWholeBand
setPrintInFirstWholeBand.
- Parameters:
printInFirstWholeBand
- aBoolean
object.- Returns:
- a T object.
-
printWhenDetailOverflows
printWhenDetailOverflows.
- Returns:
- a T object.
-
setPrintWhenDetailOverflows
setPrintWhenDetailOverflows.
- Parameters:
printWhenDetailOverflows
- aBoolean
object.- Returns:
- a T object.
-
addProperty
Adds a jasper property to the column value.- Parameters:
propertyExpression
- the property expression- Returns:
- a column builder
-
addProperty
Adds a jasper property to the column value.- Parameters:
name
- the property namevalueExpression
- the property value expression- Returns:
- a column builder
-
addProperty
Adds a jasper property to the column value.- Parameters:
name
- the property namevalue
- the property value- Returns:
- a column builder
-
getComponent
getComponent.
- Overrides:
getComponent
in classColumnBuilder<T extends ValueColumnBuilder<T,
U>, DRValueColumn<U>> - Returns:
- a
DRComponent
object.
-