net.sf.dynamicreports.report.builder.grid
Class ColumnTitleGroupBuilder

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.AbstractBuilder<ColumnTitleGroupBuilder,DRColumnTitleGroup>
      extended by net.sf.dynamicreports.report.builder.grid.ColumnTitleGroupBuilder
All Implemented Interfaces:
Serializable, ColumnGridComponentBuilder

public class ColumnTitleGroupBuilder
extends AbstractBuilder<ColumnTitleGroupBuilder,DRColumnTitleGroup>
implements ColumnGridComponentBuilder

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 ColumnTitleGroupBuilder()
           
 
Method Summary
 ColumnTitleGroupBuilder add(ColumnGridComponentBuilder... components)
           
 ColumnTitleGroupBuilder addTitleProperty(DRIPropertyExpression propertyExpression)
          Adds a jasper property to the column title group.
 ColumnTitleGroupBuilder addTitleProperty(String name, DRIExpression<String> valueExpression)
          Adds a jasper property to the column title group.
 ColumnTitleGroupBuilder addTitleProperty(String name, String value)
          Adds a jasper property to the column title group.
 DRColumnTitleGroup getColumnGridTitleGroup()
           
 ColumnTitleGroupBuilder setTitle(DRIExpression<?> titleExpression)
           
 ColumnTitleGroupBuilder setTitle(String title)
           
 ColumnTitleGroupBuilder setTitleColumns(Integer columns)
          This method is used to define the preferred width of a column title.
 ColumnTitleGroupBuilder setTitleFixedColumns(Integer columns)
          This method is used to define the fixed width of a column title.
 ColumnTitleGroupBuilder setTitleFixedHeight(Integer height)
          Sets the fixed height of a column title.
 ColumnTitleGroupBuilder setTitleFixedRows(Integer rows)
          This method is used to define the fixed height of a column title.
 ColumnTitleGroupBuilder setTitleFixedWidth(Integer width)
          Sets the fixed width of a column title.
 ColumnTitleGroupBuilder setTitleHeight(Integer height)
          Sets the preferred height of a column title.
 ColumnTitleGroupBuilder setTitleMinColumns(Integer columns)
          This method is used to define the minimum width of a column title.
 ColumnTitleGroupBuilder setTitleMinHeight(Integer height)
          Sets the minimum height of a column title.
 ColumnTitleGroupBuilder setTitleMinRows(Integer rows)
          This method is used to define the minimum height of a column title.
 ColumnTitleGroupBuilder setTitleMinWidth(Integer width)
          Sets the minimum width of a column title.
 ColumnTitleGroupBuilder setTitleRows(Integer rows)
          This method is used to define the preferred height of a column title.
 ColumnTitleGroupBuilder setTitleStretchWithOverflow(Boolean stretchWithOverflow)
           
 ColumnTitleGroupBuilder setTitleStyle(ReportStyleBuilder titleStyle)
           
 ColumnTitleGroupBuilder setTitleWidth(Integer width)
          Sets the preferred width of a column title.
 
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

ColumnTitleGroupBuilder

protected ColumnTitleGroupBuilder()
Method Detail

add

public ColumnTitleGroupBuilder add(ColumnGridComponentBuilder... components)

setTitle

public ColumnTitleGroupBuilder setTitle(DRIExpression<?> titleExpression)

setTitle

public ColumnTitleGroupBuilder setTitle(String title)

setTitleStyle

public ColumnTitleGroupBuilder setTitleStyle(ReportStyleBuilder titleStyle)

setTitleColumns

public ColumnTitleGroupBuilder setTitleColumns(Integer columns)
This method is used to define the preferred width of a column title. The width is set to the columns multiplied by width of the font

Parameters:
columns - the number of preferred columns >= 0
Throws:
IllegalArgumentException - if columns is < 0

setTitleFixedColumns

public ColumnTitleGroupBuilder setTitleFixedColumns(Integer columns)
This method is used to define the fixed width of a column title. The width is set to the columns multiplied by width of the font

Parameters:
columns - the number of fixed columns >= 0
Throws:
IllegalArgumentException - if columns is < 0

setTitleMinColumns

public ColumnTitleGroupBuilder setTitleMinColumns(Integer columns)
This method is used to define the minimum width of a column title. The width is set to the columns multiplied by width of the font

Parameters:
columns - the number of minimum columns >= 0
Throws:
IllegalArgumentException - if columns is < 0

setTitleWidth

public ColumnTitleGroupBuilder setTitleWidth(Integer width)
Sets the preferred width of a column title.

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

setTitleFixedWidth

public ColumnTitleGroupBuilder setTitleFixedWidth(Integer width)
Sets the fixed width of a column title.

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

setTitleMinWidth

public ColumnTitleGroupBuilder setTitleMinWidth(Integer width)
Sets the minimum width of a column title.

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

setTitleRows

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

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

setTitleFixedRows

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

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

setTitleMinRows

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

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

setTitleHeight

public ColumnTitleGroupBuilder setTitleHeight(Integer height)
Sets the preferred height of a column title.

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

setTitleFixedHeight

public ColumnTitleGroupBuilder setTitleFixedHeight(Integer height)
Sets the fixed height of a column title.

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

setTitleMinHeight

public ColumnTitleGroupBuilder setTitleMinHeight(Integer height)
Sets the minimum height of a column title.

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

setTitleStretchWithOverflow

public ColumnTitleGroupBuilder setTitleStretchWithOverflow(Boolean stretchWithOverflow)

addTitleProperty

public ColumnTitleGroupBuilder addTitleProperty(DRIPropertyExpression propertyExpression)
Adds a jasper property to the column title group.

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

addTitleProperty

public ColumnTitleGroupBuilder addTitleProperty(String name,
                                                DRIExpression<String> valueExpression)
Adds a jasper property to the column title group.

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

addTitleProperty

public ColumnTitleGroupBuilder addTitleProperty(String name,
                                                String value)
Adds a jasper property to the column title group.

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

getColumnGridTitleGroup

public DRColumnTitleGroup getColumnGridTitleGroup()


Copyright © 2010-2014. All Rights Reserved.