Class TextFieldBuilder<T>
java.lang.Object
net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
net.sf.dynamicreports.report.builder.component.ComponentBuilder<T,U>
net.sf.dynamicreports.report.builder.component.DimensionComponentBuilder<T,U>
net.sf.dynamicreports.report.builder.component.HyperLinkComponentBuilder<TextFieldBuilder<T>,DRTextField<T>>
net.sf.dynamicreports.report.builder.component.TextFieldBuilder<T>
- All Implemented Interfaces:
Serializable
public class TextFieldBuilder<T>
extends HyperLinkComponentBuilder<TextFieldBuilder<T>,DRTextField<T>>
TextFieldBuilder 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 TypeMethodDescriptionsetColumns
(Integer columns) This method is used to define the preferred width of a textField.setDataType
(DRIDataType<? super T, T> dataType) setDataType.setEvaluationGroup
(GroupBuilder<?> evaluationGroup) setEvaluationGroup.setEvaluationTime
(Evaluation evaluationTime) setEvaluationTime.setFixedColumns
(Integer columns) This method is used to define the fixed width of a textField.setFixedRows
(Integer rows) This method is used to define the fixed height of a textField.setHorizontalAlignment
(HorizontalAlignment horizontalAlignment) Deprecated.use setHorizontalTextAlignment insteadsetHorizontalTextAlignment
(HorizontalTextAlignment horizontalTextAlignment) setHorizontalTextAlignment.setMarkup.setMinColumns
(Integer columns) This method is used to define the minimum width of a textField.setMinRows
(Integer rows) This method is used to define the minimum height of a textField.setPattern
(String pattern) setPattern.setPattern
(DRIExpression<String> patternExpression) setPattern.setPrintRepeatedValues
(Boolean printRepeatedValues) setPrintRepeatedValues.This method is used to define the preferred height of a textField.setStretchWithOverflow
(Boolean stretchWithOverflow) Deprecated.replaced bysetTextAdjust(TextAdjust)
setText.setText.setText.setText
(FieldBuilder<T> field) setText.setText
(VariableBuilder<T> variable) setText.setText
(DRIExpression<T> textExpression) setText.setTextAdjust
(TextAdjust textAdjust) setTextAdjust.setValueFormatter
(DRIValueFormatter<?, ? super T> valueFormatter) setValueFormatter.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
-
Constructor Details
-
TextFieldBuilder
protected TextFieldBuilder()Constructor for TextFieldBuilder.
-
-
Method Details
-
setText
setText.
- Parameters:
variable
- aVariableBuilder
object.- Returns:
- a
TextFieldBuilder
object.
-
setText
setText.
- Parameters:
field
- aFieldBuilder
object.- Returns:
- a
TextFieldBuilder
object.
-
setText
setText.
- Parameters:
textExpression
- aDRIExpression
object.- Returns:
- a
TextFieldBuilder
object.
-
setText
setText.
- Parameters:
text
- aString
object.- Returns:
- a
TextFieldBuilder
object.
-
setText
setText.
- Parameters:
number
- aNumber
object.- Returns:
- a
TextFieldBuilder
object.
-
setText
setText.
- Parameters:
date
- aDate
object.- Returns:
- a
TextFieldBuilder
object.
-
setPattern
setPattern.
- Parameters:
pattern
- aString
object.- Returns:
- a
TextFieldBuilder
object.
-
setPattern
setPattern.
- Parameters:
patternExpression
- aDRIExpression
object.- Returns:
- a
TextFieldBuilder
object.
-
setHorizontalAlignment
@Deprecated public TextFieldBuilder<T> setHorizontalAlignment(HorizontalAlignment horizontalAlignment) Deprecated.use setHorizontalTextAlignment insteadsetHorizontalAlignment.
- Parameters:
horizontalAlignment
- aHorizontalAlignment
object.- Returns:
- a
TextFieldBuilder
object.
-
setHorizontalTextAlignment
public TextFieldBuilder<T> setHorizontalTextAlignment(HorizontalTextAlignment horizontalTextAlignment) setHorizontalTextAlignment.
- Parameters:
horizontalTextAlignment
- aHorizontalTextAlignment
object.- Returns:
- a
TextFieldBuilder
object.
-
setValueFormatter
setValueFormatter.
- Parameters:
valueFormatter
- aDRIValueFormatter
object.- Returns:
- a
TextFieldBuilder
object.
-
setDataType
setDataType.
- Parameters:
dataType
- aDRIDataType
object.- Returns:
- a
TextFieldBuilder
object.
-
setColumns
This method is used to define the preferred width of a textField. 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
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setFixedColumns
This method is used to define the fixed width of a textField. 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
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setMinColumns
This method is used to define the minimum width of a textField. 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
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifcolumns
is < 0
-
setRows
This method is used to define the preferred height of a textField. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of preferred rows >= 0- Returns:
- a
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifrows
is < 0
-
setFixedRows
This method is used to define the fixed height of a textField. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of fixed rows >= 0- Returns:
- a
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifrows
is < 0
-
setMinRows
This method is used to define the minimum height of a textField. The height is set to therows
multiplied by height of the font- Parameters:
rows
- the number of minimum rows >= 0- Returns:
- a
TextFieldBuilder
object. - Throws:
IllegalArgumentException
- ifrows
is < 0
-
setEvaluationTime
setEvaluationTime.
- Parameters:
evaluationTime
- aEvaluation
object.- Returns:
- a
TextFieldBuilder
object.
-
setEvaluationGroup
setEvaluationGroup.
- Parameters:
evaluationGroup
- aGroupBuilder
object.- Returns:
- a
TextFieldBuilder
object.
-
setMarkup
setMarkup.
- Parameters:
markup
- aMarkup
object.- Returns:
- a
TextFieldBuilder
object.
-
setStretchWithOverflow
Deprecated.replaced bysetTextAdjust(TextAdjust)
setStretchWithOverflow.
- Parameters:
stretchWithOverflow
- aBoolean
object.- Returns:
- a
TextFieldBuilder
object.
-
setTextAdjust
setTextAdjust.
- Parameters:
textAdjust
- aTextAdjust
object.- Returns:
- a T object.
-
setPrintRepeatedValues
setPrintRepeatedValues.
- Parameters:
printRepeatedValues
- aBoolean
object.- Returns:
- a
TextFieldBuilder
object.
-