Class MapElementJsonHandler
- java.lang.Object
-
- net.sf.jasperreports.components.map.MapElementJsonHandler
-
- All Implemented Interfaces:
GenericElementHandler,GenericElementJsonHandler
public class MapElementJsonHandler extends Object implements GenericElementJsonHandler
- Author:
- Narcis Marcu (narcism@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.json.export.GenericElementJsonHandler
PARAMETER_CLEAR_CONTEXT_CACHE
-
-
Constructor Summary
Constructors Constructor Description MapElementJsonHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MapElementJsonHandlergetInstance()StringgetJsonFragment(JsonExporterContext context, JRGenericPrintElement element)Returns an JSON fragment that is to be inserted in the export output.booleantoExport(JRGenericPrintElement element)Decides whether a generic print element is to be exported.
-
-
-
Method Detail
-
getInstance
public static MapElementJsonHandler getInstance()
-
getJsonFragment
public String getJsonFragment(JsonExporterContext context, JRGenericPrintElement element)
Description copied from interface:GenericElementJsonHandlerReturns an JSON fragment that is to be inserted in the export output.- Specified by:
getJsonFragmentin interfaceGenericElementJsonHandlerelement- the generic print element- Returns:
- the JSON fragment that represents the exported element
-
toExport
public boolean toExport(JRGenericPrintElement element)
Description copied from interface:GenericElementHandlerDecides whether a generic print element is to be exported.- Specified by:
toExportin interfaceGenericElementHandler- Parameters:
element- the element- Returns:
- whether the element is to be exported or skipped
-
-