net.sf.dynamicreports.report.builder.column
Class ValueColumnBuilder<T extends ValueColumnBuilder<T,U>,U>

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
      extended by net.sf.dynamicreports.report.builder.column.ColumnBuilder<T,DRValueColumn<U>>
          extended by 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>>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
builded
 
Constructor Summary
protected ValueColumnBuilder()
           
 
Method Summary
 T addProperty(DRIPropertyExpression propertyExpression)
          Adds a jasper property to the column value.
 T addProperty(String name, DRIExpression<String> valueExpression)
          Adds a jasper property to the column value.
 T addProperty(String name, String value)
          Adds a jasper property to the column value.
protected  DRTextField<U> getComponent()
           
 T printInFirstWholeBand()
           
 T printWhenDetailOverflows()
           
 T setAnchorName(DRIExpression<String> anchorNameExpression)
           
 T setAnchorName(String anchorName)
           
 T setBookmarkLevel(Integer bookmarkLevel)
           
 T setColumns(Integer columns)
          This method is used to define the preferred width of a column.
 T setDataType(DRIDataType<? super U,U> dataType)
          Sets the column data type.
 T setFixedColumns(Integer columns)
          This method is used to define the fixed width of a column.
 T setFixedHeight(Integer height)
          Sets the fixed height of a column.
 T setFixedRows(Integer rows)
          This method is used to define the fixed height of a column.
 T setFixedWidth(Integer width)
          Sets the fixed width of a column.
 T setHeight(Integer height)
          Sets the preferred height of a column.
 T setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
          Sets the column value horizontal alignment.
 T setHyperLink(HyperLinkBuilder hyperLink)
          Sets the column value hyperlink.
 T setMinColumns(Integer columns)
          This method is used to define the minimum width of a column.
 T setMinHeight(Integer height)
          Sets the minimum height of a column.
 T setMinRows(Integer rows)
          This method is used to define the minimum height of a column.
 T setMinWidth(Integer width)
          Sets the minimum width of a column.
 T setPattern(DRIExpression<String> patternExpression)
          Sets the column value format pattern.
 T setPattern(String pattern)
          Sets the column value format pattern.
 T setPrintInFirstWholeBand(Boolean printInFirstWholeBand)
           
 T setPrintRepeatedDetailValues(Boolean printRepeatedDetailValues)
          Specifies whether or not print a value if the value is the same as the previous value.
 T setPrintWhenDetailOverflows(Boolean printWhenDetailOverflows)
           
 T setRows(Integer rows)
          This method is used to define the preferred height of a column.
 T setStretchWithOverflow(Boolean stretchWithOverflow)
           
protected  void setValueExpression(DRIExpression<U> valueExpression)
           
 T setValueFormatter(DRIValueFormatter<?,? super U> valueFormatter)
          Sets the column value formatter expression.
 T setWidth(Integer width)
          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
 
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 Detail

ValueColumnBuilder

protected ValueColumnBuilder()
Method Detail

setValueExpression

protected void setValueExpression(DRIExpression<U> valueExpression)

setPrintRepeatedDetailValues

public T setPrintRepeatedDetailValues(Boolean printRepeatedDetailValues)
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

public T setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
Sets the column value horizontal alignment.

Parameters:
horizontalAlignment -
Returns:
a column builder

setPattern

public T setPattern(String pattern)
Sets the column value format pattern.

Parameters:
pattern - the format pattern
Returns:
a column builder

setPattern

public T setPattern(DRIExpression<String> patternExpression)
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

public T setValueFormatter(DRIValueFormatter<?,? super U> valueFormatter)
Sets the column value formatter expression.

Parameters:
valueFormatter - the value formatter expression
Returns:
a column builder

setDataType

public T setDataType(DRIDataType<? super U,U> dataType)
Sets the column data type.

Parameters:
dataType - the data type
Returns:
a column builder

setColumns

public T setColumns(Integer columns)
This method is used to define the preferred width of a column. The width is set to the columns 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 - if columns is < 0

setFixedColumns

public T setFixedColumns(Integer columns)
This method is used to define the fixed width of a column. The width is set to the columns 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 - if columns is < 0

setMinColumns

public T setMinColumns(Integer columns)
This method is used to define the minimum width of a column. The width is set to the columns 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 - if columns is < 0

setRows

public T setRows(Integer rows)
This method is used to define the preferred height of a column. The height is set to the rows multiplied by height of the font

Parameters:
rows - the number of preferred rows >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if rows is < 0

setFixedRows

public T setFixedRows(Integer rows)
This method is used to define the fixed height of a column. The height is set to the rows multiplied by height of the font

Parameters:
rows - the number of fixed rows >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if rows is < 0

setMinRows

public T setMinRows(Integer rows)
This method is used to define the minimum height of a column. The height is set to the rows multiplied by height of the font

Parameters:
rows - the number of minimum rows >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if rows is < 0

setAnchorName

public T setAnchorName(String anchorName)

setAnchorName

public T setAnchorName(DRIExpression<String> anchorNameExpression)

setBookmarkLevel

public T setBookmarkLevel(Integer bookmarkLevel)

setHyperLink

public T setHyperLink(HyperLinkBuilder hyperLink)
Sets the column value hyperlink.

Parameters:
hyperLink - the value hyperlink
Returns:
a column builder

setWidth

public T setWidth(Integer width)
Sets the preferred width of a column.

Parameters:
width - the column preferred width >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setFixedWidth

public T setFixedWidth(Integer width)
Sets the fixed width of a column.

Parameters:
width - the column fixed width >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setMinWidth

public T setMinWidth(Integer width)
Sets the minimum width of a column.

Parameters:
width - the column minimum width >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setHeight

public T setHeight(Integer height)
Sets the preferred height of a column.

Parameters:
height - the column preferred height >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setFixedHeight

public T setFixedHeight(Integer height)
Sets the fixed height of a column.

Parameters:
height - the column fixed height >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setMinHeight

public T setMinHeight(Integer height)
Sets the minimum height of a column.

Parameters:
height - the column minimum height >= 0
Returns:
a column builder
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setStretchWithOverflow

public T setStretchWithOverflow(Boolean stretchWithOverflow)

printInFirstWholeBand

public T printInFirstWholeBand()

setPrintInFirstWholeBand

public T setPrintInFirstWholeBand(Boolean printInFirstWholeBand)

printWhenDetailOverflows

public T printWhenDetailOverflows()

setPrintWhenDetailOverflows

public T setPrintWhenDetailOverflows(Boolean printWhenDetailOverflows)

addProperty

public T addProperty(DRIPropertyExpression propertyExpression)
Adds a jasper property to the column value.

Parameters:
propertyExpression - the property expression
Returns:
a column builder

addProperty

public T addProperty(String name,
                     DRIExpression<String> valueExpression)
Adds a jasper property to the column value.

Parameters:
name - the property name
valueExpression - the property value expression
Returns:
a column builder

addProperty

public T addProperty(String name,
                     String value)
Adds a jasper property to the column value.

Parameters:
name - the property name
value - the property value
Returns:
a column builder

getComponent

protected DRTextField<U> getComponent()
Overrides:
getComponent in class ColumnBuilder<T extends ValueColumnBuilder<T,U>,DRValueColumn<U>>


Copyright © 2010-2014. All Rights Reserved.