net.sf.dynamicreports.report.builder.component
Class TextFieldBuilder<T>

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
      extended by net.sf.dynamicreports.report.builder.component.ComponentBuilder<T,U>
          extended by net.sf.dynamicreports.report.builder.component.DimensionComponentBuilder<T,U>
              extended by net.sf.dynamicreports.report.builder.component.HyperLinkComponentBuilder<TextFieldBuilder<T>,DRTextField<T>>
                  extended by net.sf.dynamicreports.report.builder.component.TextFieldBuilder<T>
All Implemented Interfaces:
Serializable

public class TextFieldBuilder<T>
extends HyperLinkComponentBuilder<TextFieldBuilder<T>,DRTextField<T>>

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 TextFieldBuilder()
           
 
Method Summary
 TextFieldBuilder<T> setColumns(Integer columns)
          This method is used to define the preferred width of a textField.
 TextFieldBuilder<T> setDataType(DRIDataType<? super T,T> dataType)
           
 TextFieldBuilder<T> setEvaluationGroup(GroupBuilder<?> evaluationGroup)
           
 TextFieldBuilder<T> setEvaluationTime(Evaluation evaluationTime)
           
 TextFieldBuilder<T> setFixedColumns(Integer columns)
          This method is used to define the fixed width of a textField.
 TextFieldBuilder<T> setFixedRows(Integer rows)
          This method is used to define the fixed height of a textField.
 TextFieldBuilder<T> setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
           
 TextFieldBuilder<T> setMarkup(Markup markup)
           
 TextFieldBuilder<T> setMinColumns(Integer columns)
          This method is used to define the minimum width of a textField.
 TextFieldBuilder<T> setMinRows(Integer rows)
          This method is used to define the minimum height of a textField.
 TextFieldBuilder<T> setPattern(DRIExpression<String> patternExpression)
           
 TextFieldBuilder<T> setPattern(String pattern)
           
 TextFieldBuilder<T> setRows(Integer rows)
          This method is used to define the preferred height of a textField.
 TextFieldBuilder<T> setStretchWithOverflow(Boolean stretchWithOverflow)
           
 TextFieldBuilder<T> setText(Date date)
           
 TextFieldBuilder<T> setText(DRIExpression<T> textExpression)
           
 TextFieldBuilder<T> setText(FieldBuilder<T> field)
           
 TextFieldBuilder<T> setText(Number number)
           
 TextFieldBuilder<T> setText(String text)
           
 TextFieldBuilder<T> setText(VariableBuilder<T> variable)
           
 TextFieldBuilder<T> setValueFormatter(DRIValueFormatter<?,? super T> valueFormatter)
           
 
Methods inherited from class net.sf.dynamicreports.report.builder.component.HyperLinkComponentBuilder
setAnchorName, setAnchorName, setBookmarkLevel, setHyperLink
 
Methods inherited from class net.sf.dynamicreports.report.builder.component.DimensionComponentBuilder
setDimension, setFixedDimension, setFixedHeight, setFixedWidth, setHeight, setMinDimension, setMinHeight, setMinWidth, setPositionType, setPrintInFirstWholeBand, setPrintWhenDetailOverflows, setPrintWhenGroupChanges, setStretchType, setWidth
 
Methods inherited from class net.sf.dynamicreports.report.builder.component.ComponentBuilder
addProperty, addProperty, addProperty, getComponent, removeLineWhenBlank, setPrintWhenExpression, setRemoveLineWhenBlank, setStyle, setTableOfContentsHeading, setTableOfContentsHeading
 
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
 

Constructor Detail

TextFieldBuilder

protected TextFieldBuilder()
Method Detail

setText

public TextFieldBuilder<T> setText(VariableBuilder<T> variable)

setText

public TextFieldBuilder<T> setText(FieldBuilder<T> field)

setText

public TextFieldBuilder<T> setText(DRIExpression<T> textExpression)

setText

public TextFieldBuilder<T> setText(String text)

setText

public TextFieldBuilder<T> setText(Number number)

setText

public TextFieldBuilder<T> setText(Date date)

setPattern

public TextFieldBuilder<T> setPattern(String pattern)

setPattern

public TextFieldBuilder<T> setPattern(DRIExpression<String> patternExpression)

setHorizontalAlignment

public TextFieldBuilder<T> setHorizontalAlignment(HorizontalAlignment horizontalAlignment)

setValueFormatter

public TextFieldBuilder<T> setValueFormatter(DRIValueFormatter<?,? super T> valueFormatter)

setDataType

public TextFieldBuilder<T> setDataType(DRIDataType<? super T,T> dataType)

setColumns

public TextFieldBuilder<T> setColumns(Integer columns)
This method is used to define the preferred width of a textField. 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
Throws:
IllegalArgumentException - if columns is < 0

setFixedColumns

public TextFieldBuilder<T> setFixedColumns(Integer columns)
This method is used to define the fixed width of a textField. 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
Throws:
IllegalArgumentException - if columns is < 0

setMinColumns

public TextFieldBuilder<T> setMinColumns(Integer columns)
This method is used to define the minimum width of a textField. 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
Throws:
IllegalArgumentException - if columns is < 0

setRows

public TextFieldBuilder<T> setRows(Integer rows)
This method is used to define the preferred height of a textField. 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

setFixedRows

public TextFieldBuilder<T> setFixedRows(Integer rows)
This method is used to define the fixed height of a textField. 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

setMinRows

public TextFieldBuilder<T> setMinRows(Integer rows)
This method is used to define the minimum height of a textField. 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

setEvaluationTime

public TextFieldBuilder<T> setEvaluationTime(Evaluation evaluationTime)

setEvaluationGroup

public TextFieldBuilder<T> setEvaluationGroup(GroupBuilder<?> evaluationGroup)

setMarkup

public TextFieldBuilder<T> setMarkup(Markup markup)

setStretchWithOverflow

public TextFieldBuilder<T> setStretchWithOverflow(Boolean stretchWithOverflow)


Copyright © 2010-2014. All Rights Reserved.