public void writeComponentElement(JRComponentElement componentElement) throws IOException { ComponentKey componentKey = componentElement.getComponentKey(); ComponentXmlWriter componentXmlWriter = ComponentsEnvironment.getInstance(jasperReportsContext).getManager(componentKey).getComponentXmlWriter(jasperReportsContext); if (componentXmlWriter.isToWrite(componentElement, this)) { writer.startElement(JRXmlConstants.ELEMENT_componentElement, getNamespace()); writeReportElement(componentElement); componentXmlWriter.writeToXml(componentElement, this); writer.closeElement(); } }
@Override public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext) { return new TextInputComponentXmlWriter(jasperReportsContext); }
@Override public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext) { return new HtmlComponentXmlWriter(jasperReportsContext); }
@Override public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext) { return new IconLabelComponentXmlWriter(jasperReportsContext); }
@Override public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext) { return new ComponentsXmlWriter(jasperReportsContext); }
@Override public ComponentXmlWriter getComponentXmlWriter( JasperReportsContext jasperReportsContext) { return new WmsMapComponentsXmlWriter(jasperReportsContext); }