Package net.sf.jasperreports.engine.component

Examples of net.sf.jasperreports.engine.component.ComponentKey


  public JRPrintElement convert(ReportConverter reportConverter,
      JRElement element)
  {
    JRComponentElement componentElement = (JRComponentElement) element;
    JRPrintElement converted = null;
    ComponentKey componentKey = componentElement.getComponentKey();
    if (componentKey != null)
    {
      ComponentManager manager = ComponentsEnvironment.getComponentManager(
          componentKey);
      if (manager != null && manager.getDesignConverter() != null)
View Full Code Here


  protected void verifyComponentElement(JRComponentElement element)
  {
    verifyReportElement(element);
   
    ComponentKey componentKey = element.getComponentKey();
    if (componentKey == null)
    {
      addBrokenRule("No component key set for component element", element);
    }
   
View Full Code Here

   */
  public void collect(JRComponentElement componentElement)
  {
    collectElement(componentElement);
   
    ComponentKey componentKey = componentElement.getComponentKey();
    ComponentManager manager = ComponentsEnvironment.getComponentManager(componentKey);
    Component component = componentElement.getComponent();
    manager.getComponentCompiler().collectExpressions(component, this);
  }
View Full Code Here

    }

    Component component = (Component) top;
    JRDesignComponentElement componentElement = (JRDesignComponentElement) getDigester().peek(1);
    String namespacePrefix = ((JRXmlDigester) getDigester()).getLastNamespacePrefix();
    ComponentKey componentKey = new ComponentKey(namespace, namespacePrefix, name);
    componentElement.setComponentKey(componentKey);
    componentElement.setComponent(component);
  }
View Full Code Here

  public JRFillComponentElement(JRBaseFiller filler, JRComponentElement element,
      JRFillObjectFactory factory)
  {
    super(filler, element, factory);
   
    ComponentKey componentKey = element.getComponentKey();
    ComponentManager manager = ComponentsEnvironment.getComponentManager(componentKey);
    fillComponent = manager.getComponentFillFactory().toFillComponent(element.getComponent(), factory);
    fillComponent.initialize(this);
  }
View Full Code Here

  public JRFillComponentElement(JRFillComponentElement element,
      JRFillCloneFactory factory)
  {
    super(element, factory);
   
    ComponentKey componentKey = element.getComponentKey();
    ComponentManager manager = ComponentsEnvironment.getComponentManager(componentKey);
    fillComponent = manager.getComponentFillFactory().cloneFillComponent(element.fillComponent, factory);
    fillComponent.initialize(this);
  }
View Full Code Here

  public void writeComponentElement(JRComponentElement componentElement) throws IOException
  {
    writer.startElement(JRXmlConstants.ELEMENT_componentElement, getNamespace());
    writeReportElement(componentElement);
   
    ComponentKey componentKey = componentElement.getComponentKey();
    Component component = componentElement.getComponent();
    ComponentXmlWriter componentXmlWriter = ComponentsEnvironment.
      getComponentManager(componentKey).getComponentXmlWriter();
    componentXmlWriter.writeToXml(componentKey, component, this);
   
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.component.ComponentKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.