Examples of JRPropertiesMap


Examples of net.sf.jasperreports.engine.JRPropertiesMap

          {
            log.debug("Loading JasperReports extension properties resource "
                + url);
          }
         
          JRPropertiesMap props = JRPropertiesMap.loadProperties(url);
          registries = loadRegistries(props);
         
          classLoaderRegistries.put(url, registries);
        }
      }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  protected void exportProperties(JRPropertiesHolder propertiesHolder) throws IOException
  {
    if (propertiesHolder.hasProperties())
    {
      JRPropertiesMap propertiesMap = propertiesHolder.getPropertiesMap();
      String[] propertyNames = propertiesMap.getPropertyNames();
      if (propertyNames != null && propertyNames.length > 0)
      {
        for(int i = 0; i < propertyNames.length; i++)
        {
          xmlWriter.startElement(JRXmlConstants.ELEMENT_property);
          xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_name, propertyNames[i]);
          String value = propertiesMap.getProperty(propertyNames[i]);
          if (value != null)
          {
            xmlWriter.addEncodedAttribute(JRXmlConstants.ATTRIBUTE_value, value);
          }
          xmlWriter.closeElement();
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  public synchronized JRPropertiesMap getPropertiesMap()
  {
    if (properties == null)
    {
      //FIXME avoid this on read only calls
      properties = new JRPropertiesMap();
     
      if (template.hasProperties())
      {
        properties.setBaseProperties(template.getPropertiesMap());
      }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  {
    // default to report/global property
    boolean allow = allowElementNegativeY;
    if (element.hasProperties())
    {
      JRPropertiesMap properties = element.getPropertiesMap();
      if (properties.containsProperty(PROPERTY_ALLOW_ELEMENT_NEGATIVE_Y))
      {
        // use element level property
        allow = JRProperties.asBoolean(properties.getProperty(
            PROPERTY_ALLOW_ELEMENT_NEGATIVE_Y));
      }
    }
    return allow;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  public JRPropertiesMap getPropertiesMap()
  {
    if (propertiesMap == null)
    {
      propertiesMap = new JRPropertiesMap();
    }
    return propertiesMap;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

   */
  private void writeProperties( JRPropertiesHolder propertiesHolder, String propertiesHolderName)
  {
    if (propertiesHolder.hasProperties())
    {
      JRPropertiesMap propertiesMap = propertiesHolder.getPropertiesMap();
      String[] propertyNames = propertiesMap.getPropertyNames();
      if (propertyNames != null && propertyNames.length > 0)
      {
        write( "//properties\n");
        for(int i = 0; i < propertyNames.length; i++)
        {
          String value = propertiesMap.getProperty(propertyNames[i]);
          if (value != null)
          {
            write( propertiesHolderName + ".setProperty(\"" + propertyNames[i] + "\", \"" + JRStringUtil.escapeJavaStringLiteral(value) + "\");\n");
          }
        }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  /**
   *
   */
  protected JRBaseScriptlet()
  {
    propertiesMap = new JRPropertiesMap();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  /**
   *
   */
  protected JRBaseField()
  {
    this.propertiesMap = new JRPropertiesMap();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

  public synchronized JRPropertiesMap getPropertiesMap()
  {
    if (propertiesMap == null)
    {
      propertiesMap = new JRPropertiesMap();
    }
    return propertiesMap;
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRPropertiesMap

 
  protected JRBaseDataset(boolean isMain)
  {
    this.isMain = isMain;
   
    propertiesMap = new JRPropertiesMap();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.