public class ReportHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_FILE_NAME_CHECKBOX_CHECKED
Constant name for the checked check button image property
|
static String |
PROPERTY_FILE_NAME_CHECKBOX_UNCHECKED
Constant name for the unchecked check button image property
|
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Object data,
String labels)
Lookup an enum's label using the ordinal string
|
static String |
format(Object data,
String displayRule,
int genovaDataType,
int precision,
int scale,
int caseConversion,
int fieldLength,
boolean blankWhenZero)
Deprecated.
|
static String |
format(Object data,
String displayRule,
int genovaDataType,
String modelType,
int precision,
int scale,
int caseConversion,
int fieldLength,
boolean blankWhenZero,
String converterBeanName)
Formats an Object as a String according to a display rule.
|
static String |
getButtonImage(String boolString,
String selectedImageName,
String unselectedImageName)
Returns the full filename for a checkbutton that uses image.
|
static String |
getCheckBoxImageFilename(Boolean b)
Returns filename for imagebox
|
static String |
getCheckBoxImageFilename(String s)
Returns filename for imagebox
|
static String |
getImage(String filename)
Gets an image from classpath.
|
public static final String PROPERTY_FILE_NAME_CHECKBOX_UNCHECKED
public static final String PROPERTY_FILE_NAME_CHECKBOX_CHECKED
@Deprecated public static String format(Object data, String displayRule, int genovaDataType, int precision, int scale, int caseConversion, int fieldLength, boolean blankWhenZero)
format(Object, String, int, String, int, int, int, int, boolean, String) instead.data - The data to formatdisplayRule - Displayrule to apply to the resultgenovaDataType - Type of the data. See
no.g9.support.GenovaConstsprecision - Desires precisionscale - ScalecaseConversion - Case conversionfieldLength - (missing javadoc)blankWhenZero - Indicates if the field should be blank when value is
zeropublic static String format(Object data, String displayRule, int genovaDataType, String modelType, int precision, int scale, int caseConversion, int fieldLength, boolean blankWhenZero, String converterBeanName)
data - The data to formatdisplayRule - Displayrule to apply to the resultgenovaDataType - Type of the data. See
no.g9.support.GenovaConstsmodelType - mapped modeltypeprecision - Desires precisionscale - ScalecaseConversion - Case conversionfieldLength - (missing javadoc)blankWhenZero - Indicates if the field should be blank when value is
zeroconverterBeanName - AttributeConverter bean namepublic static String format(Object data, String labels)
data - - containing enum ordinallabels - - comma delimited list of enum labelspublic static String getButtonImage(String boolString, String selectedImageName, String unselectedImageName)
boolString - value of attributeselectedImageName - filenameunselectedImageName - filenamepublic static String getImage(String filename)
filename - filepublic static String getCheckBoxImageFilename(Boolean b)
b - The Boolean to get a graphical representation ofCopyright © 2006–2020 Esito AS. All rights reserved.