net.sf.dynamicreports.report.definition.expression
Interface DRIValueFormatter<T,U>

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractValueFormatter

public interface DRIValueFormatter<T,U>
extends Serializable

The purpose of this expression is to format a value only.
For instance, when it is necessary to display a currency next to the value or just show a value in another format.
It can be applied in any report column, group, subtotal, or text field component.

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)

Method Summary
 T format(U value, ReportParameters reportParameters)
          Evaluates the format expression.
 Class<T> getValueClass()
           
 

Method Detail

format

T format(U value,
         ReportParameters reportParameters)
Evaluates the format expression.

Parameters:
value - the value to be formatted
reportParameters - access to report fields, variables, parameters, expressions, and other report values
Returns:
the formatted value

getValueClass

Class<T> getValueClass()


Copyright © 2010-2014. All Rights Reserved.