LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.infointerface
Interface LyFormatterInterface

All Known Implementing Classes:
LyFormatterAdapter

public interface LyFormatterInterface

Interface implemented by classes that format field values.


Field Summary
static java.lang.String __VERSION
           
 
Method Summary
 java.lang.Object parse(LyFieldInfo fieldInfo, java.lang.String value, LyUnit unit)
          Method to parse a string value with a given unit.
 java.lang.String toName(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
          Method to format a value to a displayable string with the given unit.
 java.lang.String toShortName(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
          Method to format a value to a displayable short string with the given unit.
 java.lang.String toString(LyFieldInfo fieldInfo, java.lang.Object value, LyUnit unit)
          Method to format a value to an edition string with the given unit.
 

Field Detail

__VERSION

static final java.lang.String __VERSION
See Also:
Constant Field Values
Method Detail

toString

java.lang.String toString(LyFieldInfo fieldInfo,
                          java.lang.Object value,
                          LyUnit unit)
Method to format a value to an edition string with the given unit.

Parameters:
fieldInfo - the fieldInfo for which a value is formatted
value - the value to format
unit - the destination unit of the string value
Returns:
The edition string corresponding to the given value and unit.

toName

java.lang.String toName(LyFieldInfo fieldInfo,
                        java.lang.Object value,
                        LyUnit unit)
Method to format a value to a displayable string with the given unit.

Parameters:
fieldInfo - the fieldInfo for which a value is formatted
value - the value to format
unit - the destination unit of the string value
Returns:
The displayable string corresponding to the given value and unit.

toShortName

java.lang.String toShortName(LyFieldInfo fieldInfo,
                             java.lang.Object value,
                             LyUnit unit)
Method to format a value to a displayable short string with the given unit.

Parameters:
fieldInfo - the fieldInfo for which a value is formatted
value - the value to format
unit - the destination unit of the string value
Returns:
The short displayable string corresponding to the given value and unit.

parse

java.lang.Object parse(LyFieldInfo fieldInfo,
                       java.lang.String value,
                       LyUnit unit)
Method to parse a string value with a given unit.

Parameters:
fieldInfo - the fieldInfo for which the string value is parsed.
value - the string value to parse
unit - the unit of the string value
Returns:
The value corresponding to the given string and unit.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com