Interface ReportFieldProvider
public interface ReportFieldProvider
Provider for custom report fields.
-
Method Summary
Modifier and TypeMethodDescriptioncreateField(ReportContext context, se.conciliate.mt.rest.JsonData settings) Creates a report field for use in report generator.getId()Returns a unique id for the field type.booleanisCompatible(ReportContext context) Returns true if this field provider is compatible with the current report context.
-
Method Details
-
getId
String getId()Returns a unique id for the field type. This should be the same id that is returned by the created fields themselves.- Returns:
- A unique field id.
-
isCompatible
Returns true if this field provider is compatible with the current report context.- Parameters:
context- The report context.- Returns:
- true if compatible, false otherwise.
-
createField
Creates a report field for use in report generator.- Parameters:
context- The current report context.settings- Field settings- Returns:
- A new field based on the provided settings.
-