Class ValueColumnBuilder<T extends ValueColumnBuilder<T,U>,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>>

Abstract ValueColumnBuilder class.

Author:
Ricardo Mariaca, Jan Moxter
See Also:
  • Constructor Details

    • ValueColumnBuilder

      protected ValueColumnBuilder()

      Constructor for ValueColumnBuilder.

  • Method Details

    • setValueExpression

      protected void setValueExpression(DRIExpression<U> valueExpression)

      setValueExpression.

      Parameters:
      valueExpression - a DRIExpression object.
    • 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

      @Deprecated public T setHorizontalAlignment(HorizontalAlignment horizontalAlignment)
      Deprecated.
      use setHorizontalTextAlignment instead
      Sets the column value horizontal alignment.
      Parameters:
      horizontalAlignment - a HorizontalAlignment object.
      Returns:
      a column builder
    • setHorizontalTextAlignment

      public T setHorizontalTextAlignment(HorizontalTextAlignment horizontalTextAlignment)
      Sets the column value horizontal text alignment.
      Parameters:
      horizontalTextAlignment - a HorizontalTextAlignment object.
      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.

      Parameters:
      anchorName - a String object.
      Returns:
      a T object.
    • setAnchorName

      public T setAnchorName(DRIExpression<String> anchorNameExpression)

      setAnchorName.

      Parameters:
      anchorNameExpression - a DRIExpression object.
      Returns:
      a T object.
    • setBookmarkLevel

      public T setBookmarkLevel(Integer bookmarkLevel)

      setBookmarkLevel.

      Parameters:
      bookmarkLevel - a Integer object.
      Returns:
      a T object.
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • setStretchWithOverflow

      @Deprecated public T setStretchWithOverflow(Boolean stretchWithOverflow)
      Deprecated.

      setStretchWithOverflow.

      Parameters:
      stretchWithOverflow - a Boolean object.
      Returns:
      a T object.
    • setTextAdjust

      public T setTextAdjust(TextAdjust textAdjust)

      setTextAdjust.

      Parameters:
      textAdjust - a TextAdjust object.
      Returns:
      a T object.
    • printInFirstWholeBand

      public T printInFirstWholeBand()

      printInFirstWholeBand.

      Returns:
      a T object.
    • setPrintInFirstWholeBand

      public T setPrintInFirstWholeBand(Boolean printInFirstWholeBand)

      setPrintInFirstWholeBand.

      Parameters:
      printInFirstWholeBand - a Boolean object.
      Returns:
      a T object.
    • printWhenDetailOverflows

      public T printWhenDetailOverflows()

      printWhenDetailOverflows.

      Returns:
      a T object.
    • setPrintWhenDetailOverflows

      public T setPrintWhenDetailOverflows(Boolean printWhenDetailOverflows)

      setPrintWhenDetailOverflows.

      Parameters:
      printWhenDetailOverflows - a Boolean object.
      Returns:
      a T object.
    • 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()

      getComponent.

      Overrides:
      getComponent in class ColumnBuilder<T extends ValueColumnBuilder<T,U>,DRValueColumn<U>>
      Returns:
      a DRComponent object.