Package org.pentaho.reporting.libraries.base.config

Examples of org.pentaho.reporting.libraries.base.config.Configuration


    this.shapesAsContent = metaData.isFeatureSupported(AbstractTableOutputProcessor.SHAPES_CONTENT);
    this.ellipseAsBackground = metaData.isFeatureSupported(AbstractTableOutputProcessor.TREAT_ELLIPSE_AS_RECTANGLE);
    updateSheetLayout(sheetLayout);

//    DebugLog.log("Table-Size: " +  sheetLayout.getRowCount() + " " + sheetLayout.getColumnCount());
    final Configuration config = metaData.getConfiguration();
    this.debugReportLayout = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.base.DebugReportLayout"));
    this.verboseCellMarkers = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.base.VerboseCellMarkers"));
    this.reportCellConflicts = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.base.ReportCellConflicts"));
  }
View Full Code Here


    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"));
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/xml"));
View Full Code Here

    final CSVWriter lm = new CSVWriter();
    lm.setSeparator(separator);
    lm.setWriteDataRowNames(writeDataRowNames);
    lm.setWriter(getWriter());

    final Configuration config = getReport().getReportConfiguration();
    lm.setWriteStateColumns(CSVProcessor.queryBoolConfig(config, CSVProcessor.CSV_WRITE_STATECOLUMNS));
    lm.setEnableReportHeader(CSVProcessor.queryBoolConfig(config, CSVProcessor.CSV_ENABLE_REPORTHEADER));
    lm.setEnableReportFooter(CSVProcessor.queryBoolConfig(config, CSVProcessor.CSV_ENABLE_REPORTFOOTER));
    lm.setEnableGroupHeader(CSVProcessor.queryBoolConfig(config, CSVProcessor.CSV_ENABLE_GROUPHEADERS));
    lm.setEnableGroupFooter(CSVProcessor.queryBoolConfig(config, CSVProcessor.CSV_ENABLE_GROUPFOOTERS));
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final HtmlPrinter printer = new AllItemsHtmlPrinter(masterReport.getResourceManager());
      printer.setContentWriter(getBodyContentLocation(), getBodyNameGenerator());
      printer.setDataWriter(getBulkLocation(), getBulkNameGenerator());
      printer.setUrlRewriter(computeUrlRewriter());
View Full Code Here

  public static synchronized BandedRootElementReadHandlerFactory getInstance()
  {
    if (readHandlerFactory == null)
    {
      readHandlerFactory = new BandedRootElementReadHandlerFactory();
      final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
      final Iterator propertyKeys = config.findPropertyKeys(BandedRootElementReadHandlerFactory.PREFIX_SELECTOR);
      while (propertyKeys.hasNext())
      {
        final String key = (String) propertyKeys.next();
        final String value = config.getConfigProperty(key);
        if (value != null)
        {
          readHandlerFactory.configure(config, value);
        }
      }
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.ms-excel"));
View Full Code Here

      final Map parameters = deriveParseParameters();
      parameters.put(new FactoryParameterKey(ReportParserUtil.HELPER_OBJ_REPORT_NAME), null);
      final BundleSettings settings = (BundleSettings)
          performExternalParsing(settingsFile, BundleSettings.class, parameters);
      // todo: Apply settings
      final Configuration configuration = settings.getConfiguration();
      final Enumeration configProperties = configuration.getConfigProperties();
      while (configProperties.hasMoreElements())
      {
        final String key = (String) configProperties.nextElement();
        final String value = configuration.getConfigProperty(key);
        if (value != null)
        {
          report.getReportConfiguration().setConfigProperty(key, value);
        }
      }
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "application/vnd.ms-excel"));
View Full Code Here

  /**
   * @noinspection ProhibitedExceptionCaught
   */
  public static synchronized void registerDefaults()
  {
    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final Iterator it = config.findPropertyKeys("org.pentaho.reporting.engine.classic.core.stylekeys.");
    final ClassLoader classLoader = ObjectUtilities.getClassLoader(StyleKey.class);

    while (it.hasNext())
    {
      final String key = (String) it.next();
      final String keyClass = config.getConfigProperty(key);
      try
      {
        final Class c = Class.forName(keyClass, false, classLoader);
        registerClass(c);
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.config.Configuration

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.