net.sf.dynamicreports.report.builder.column
Class BooleanColumnBuilder

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
      extended by net.sf.dynamicreports.report.builder.column.ColumnBuilder<BooleanColumnBuilder,DRBooleanColumn>
          extended by net.sf.dynamicreports.report.builder.column.BooleanColumnBuilder
All Implemented Interfaces:
Serializable, ColumnGridComponentBuilder

public class BooleanColumnBuilder
extends ColumnBuilder<BooleanColumnBuilder,DRBooleanColumn>

It shows a boolean value either as a text or as an image.

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 BooleanColumnBuilder(DRIExpression<Boolean> valueExpression)
           
protected BooleanColumnBuilder(FieldBuilder<Boolean> field)
           
 
Method Summary
protected  DRBooleanField getComponent()
           
 BooleanColumnBuilder setComponentType(BooleanComponentType booleanComponentType)
          Sets the boolean presentation type.
 BooleanColumnBuilder setEmptyWhenNullValue(Boolean emptyWhenNullValue)
           
 BooleanColumnBuilder setFixedHeight(Integer height)
          Sets the fixed height of a column.
 BooleanColumnBuilder setFixedWidth(Integer width)
          Sets the fixed width of a column.
 BooleanColumnBuilder setHeight(Integer height)
          Sets the preferred height of a column.
 BooleanColumnBuilder setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
          Sets the column value horizontal alignment.
 BooleanColumnBuilder setImageDimension(Integer width, Integer height)
          Sets the boolean image dimension.
 BooleanColumnBuilder setImageHeight(Integer height)
          Sets the boolean image height.
 BooleanColumnBuilder setImageWidth(Integer width)
          Sets the boolean image width.
 BooleanColumnBuilder setMinHeight(Integer height)
          Sets the minimum height of a column.
 BooleanColumnBuilder setMinWidth(Integer width)
          Sets the minimum width of a column.
 BooleanColumnBuilder 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

BooleanColumnBuilder

protected BooleanColumnBuilder(FieldBuilder<Boolean> field)

BooleanColumnBuilder

protected BooleanColumnBuilder(DRIExpression<Boolean> valueExpression)
Method Detail

setWidth

public BooleanColumnBuilder 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 BooleanColumnBuilder 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 BooleanColumnBuilder 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 BooleanColumnBuilder 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 BooleanColumnBuilder 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 BooleanColumnBuilder 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

setComponentType

public BooleanColumnBuilder setComponentType(BooleanComponentType booleanComponentType)
Sets the boolean presentation type.
BooleanComponentType.TEXT_* - shows a text value
BooleanComponentType.IMAGE_* - shows an image

Parameters:
booleanComponentType - the component type
Returns:
a column builder

setEmptyWhenNullValue

public BooleanColumnBuilder setEmptyWhenNullValue(Boolean emptyWhenNullValue)

setImageDimension

public BooleanColumnBuilder setImageDimension(Integer width,
                                              Integer height)
Sets the boolean image dimension. Has effect only when the boolean value is presented as an image.

Parameters:
width - the image width
height - the image height
Returns:
a column builder

setImageWidth

public BooleanColumnBuilder setImageWidth(Integer width)
Sets the boolean image width. Has effect only when the boolean value is presented as an image.

Parameters:
width - the image width
Returns:
a column builder

setImageHeight

public BooleanColumnBuilder setImageHeight(Integer height)
Sets the boolean image height. Has effect only when the boolean value is presented as an image.

Parameters:
height - the image height
Returns:
a column builder

setHorizontalAlignment

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

Parameters:
horizontalAlignment -
Returns:
a column builder

getComponent

protected DRBooleanField getComponent()
Overrides:
getComponent in class ColumnBuilder<BooleanColumnBuilder,DRBooleanColumn>


Copyright © 2010-2014. All Rights Reserved.