Class AutoGeneratorUtility
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.wizard.AutoGeneratorUtility
-
public class AutoGeneratorUtility extends Object
-
-
Method Summary
-
-
-
Method Detail
-
getGroups
public static Group[] getGroups(ReportDefinition definition)
-
generateUniqueExpressionName
public static String generateUniqueExpressionName(DataSchema dataSchema, String pattern, String[] extraColumns) throws ReportProcessingException
- Throws:
ReportProcessingException
-
generateUniqueExpressionName
public static String generateUniqueExpressionName(DataSchema dataSchema, String pattern, AbstractReportDefinition extraColumns) throws ReportProcessingException
- Throws:
ReportProcessingException
-
computeFieldWidths
public static float[] computeFieldWidths(Float[] fieldDescriptions, float pageWidth)
Computes a set of field widths. The input-width definitions can be a mix of absolute and relative values; the resulting widths are always relative values. If the input width is null or zero, it is assumed that the field wants to have a generic width.- Parameters:
fieldDescriptions
-pageWidth
-- Returns:
-
generateFooterElement
public static Element generateFooterElement(Class aggregationType, ElementType targetType, String group, String fieldName)
-
generateDetailsElement
public static Element generateDetailsElement(String fieldName, ElementType targetType)
-
createFieldWidth
public static Number createFieldWidth(DataAttributes attributes, DataAttributeContext context)
-
createFieldName
public static String createFieldName(DataAttributes attributes, DataAttributeContext context)
-
createFieldType
public static ElementType createFieldType(DataAttributes attributes, DataAttributeContext context)
-
createFieldType
public static ElementType createFieldType(Class type)
-
computeFormatString
public static String computeFormatString(DataAttributes attributes, DataAttributeContext context)
-
isIgnorable
public static boolean isIgnorable(DataAttributes attributes, DataAttributeContext context)
-
-