Java 类net.sf.jasperreports.engine.component.ComponentXmlWriter 实例源码

项目:jasperreports    文件:JRXmlWriter.java   
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();
    }
}
项目:jasperreports    文件:TextInputComponentManager.java   
@Override
public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext)
{
    return new TextInputComponentXmlWriter(jasperReportsContext);
}
项目:jasperreports    文件:HtmlComponentManager.java   
@Override
public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext)
{
    return new HtmlComponentXmlWriter(jasperReportsContext);
}
项目:jasperreports    文件:IconLabelComponentManager.java   
@Override
public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext)
{
    return new IconLabelComponentXmlWriter(jasperReportsContext);
}
项目:jasperreports    文件:ComponentsManager.java   
@Override
public ComponentXmlWriter getComponentXmlWriter(JasperReportsContext jasperReportsContext)
{
    return new ComponentsXmlWriter(jasperReportsContext);
}
项目:jasperreports-wms-component    文件:WmsMapComponentManager.java   
@Override
public ComponentXmlWriter getComponentXmlWriter(
    JasperReportsContext jasperReportsContext) {
  return new WmsMapComponentsXmlWriter(jasperReportsContext);
}