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

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


   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final ModifiableConfiguration config = new DefaultConfiguration();
    config.setConfigProperty(CSVProcessor.CSV_SEPARATOR, getSeparatorString());
    config.setConfigProperty(CSVProcessor.CSV_DATAROWNAME, String.valueOf(isColumnNamesAsFirstRow()));
    config.setConfigProperty(CSVProcessor.CSV_ENCODING, getEncoding());

    config.setConfigProperty(CSVProcessor.CSV_ENABLE_GROUPFOOTERS, String.valueOf(isEnableGroupFooter()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_GROUPHEADERS, String.valueOf(isEnableGroupHeader()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_ITEMBANDS, String.valueOf(isEnableItembands()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_REPORTFOOTER, String.valueOf(isEnableReportFooter()));
    config.setConfigProperty(CSVProcessor.CSV_ENABLE_REPORTHEADER, String.valueOf(isEnableReportHeader()));

    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.csv.FileName", getFilename()); //$NON-NLS-1$
    config.setConfigProperty(CSVProcessor.CSV_WRITE_STATECOLUMNS, "false"); //$NON-NLS-1$

    return config;
  }
View Full Code Here


   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();
    if (full)
    {
      p.setProperty
          ("org.pentaho.reporting.engine.classic.core.modules.gui.html.ExportMethod", "zip"); //$NON-NLS-1$ //$NON-NLS-2$
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.DataDirectory",//$NON-NLS-1$
          getDataFilename());
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.TargetFileName",//$NON-NLS-1$
          getFilename());
    }

    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Keywords",//$NON-NLS-1$
        getKeywords());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Description",//$NON-NLS-1$
        getDescription());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Author",//$NON-NLS-1$
        getAuthor());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Encoding",//$NON-NLS-1$
        getEncoding());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Title",//$NON-NLS-1$
        getHTMLTitle());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.StrictLayout",//$NON-NLS-1$
        String.valueOf(isStrictLayout()));
    return p;
  }
View Full Code Here

{
  private ModifiableConfiguration configuration;

  public SettingsRootElementHandler()
  {
    this.configuration = new DefaultConfiguration();
  }
View Full Code Here

    if (configuration == null)
    {
      throw new NullPointerException();
    }

    final DefaultConfiguration defConf = new DefaultConfiguration();
    final Enumeration configProperties = configuration.getConfigProperties();
    while (configProperties.hasMoreElements())
    {
      final String key = (String) configProperties.nextElement();
      final String value = configuration.getConfigProperty(key);
      if (value != null)
      {
        defConf.setConfigProperty(key, value);
      }
    }
    this.configuration = defConf;
  }
View Full Code Here

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();
    if (full)
    {
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.rtf.FileName", getFilename()); //$NON-NLS-1$
    }
    p.setProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.rtf.StrictLayout", //$NON-NLS-1$
            String.valueOf( isStrictLayout()));
    return p;
  }
View Full Code Here

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();
    if (full)
    {
      p.setConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.gui.html.file.DataDirectory",//$NON-NLS-1$
          getDataFilename());
      p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.gui.html.file.TargetFileName",//$NON-NLS-1$
          getFilename());
    }

    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Keywords",//$NON-NLS-1$
        getKeywords());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Description",//$NON-NLS-1$
        getDescription());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Author",//$NON-NLS-1$
        getAuthor());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Encoding",//$NON-NLS-1$
        getEncoding());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.Title",//$NON-NLS-1$
        getHTMLTitle());
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.html.StrictLayout",//$NON-NLS-1$
        String.valueOf(isStrictLayout()));
    return p;
  }
View Full Code Here

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();

    if (full)
    {
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.xls.FileName", getFilename()); //$NON-NLS-1$
    }
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.StrictLayout",
        String.valueOf(isStrictLayout())); //$NON-NLS-1$
    return p;
  }
View Full Code Here

  /**
   * Stores the input from the dialog into the report configuration of the report.
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration config = new DefaultConfiguration();

    config.setConfigProperty(PlainTextPageableModule.ENCODING, getEncoding());
    config.setConfigProperty(PlainTextPageableModule.CHARS_PER_INCH, String.valueOf(getCharsPerInch()));
    config.setConfigProperty(PlainTextPageableModule.LINES_PER_INCH, String.valueOf(getLinesPerInch()));
    config.setConfigProperty(Epson9PinPrinterDriver.EPSON_9PIN_PRINTER_TYPE, getSelected9PinPrinterModel());
    config.setConfigProperty(Epson24PinPrinterDriver.EPSON_24PIN_PRINTER_TYPE, getSelected24PinPrinterModel());

    if (full)
    {
      switch (getSelectedPrinter())
      {
        case PlainTextExportDialog.TYPE_EPSON24_OUTPUT:
        {
          config.setConfigProperty
              (EXPORT_TYPE_CONFIG_KEY,  "24pin"); //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
        case PlainTextExportDialog.TYPE_EPSON9_OUTPUT:
        {
          config.setConfigProperty
              (EXPORT_TYPE_CONFIG_KEY, "9pin"); //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
        case PlainTextExportDialog.TYPE_IBM_OUTPUT:
        {
          config.setConfigProperty
              (EXPORT_TYPE_CONFIG_KEY,  "ibm"); //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
        case PlainTextExportDialog.TYPE_PLAIN_OUTPUT:
        {
          config.setConfigProperty
              (EXPORT_TYPE_CONFIG_KEY, "plain"); //$NON-NLS-1$ //$NON-NLS-2$
          break;
        }
        default:
          throw new IllegalStateException();
      }
      config.setConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.gui.plaintext.FileName", getFilename()); //$NON-NLS-1$

    }
    return config;
  }
View Full Code Here

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final DefaultConfiguration p = new DefaultConfiguration();

    if (full)
    {
      p.setProperty("org.pentaho.reporting.engine.classic.core.modules.gui.xls.FileName", getFilename()); //$NON-NLS-1$
    }
    p.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.StrictLayout",
        String.valueOf(isStrictLayout())); //$NON-NLS-1$
    return p;
  }
View Full Code Here

   * @param full
   * @return
   */
  protected Configuration grabDialogContents(final boolean full)
  {
    final ModifiableConfiguration config = new DefaultConfiguration();
    config.setConfigProperty(CSVProcessor.CSV_SEPARATOR, getSeparatorString());
    config.setConfigProperty(CSVTableModule.SEPARATOR, getSeparatorString());
    config.setConfigProperty(CSVTableModule.STRICT_LAYOUT + ".StrictLayout", //$NON-NLS-1$
        String.valueOf(isStrictLayout()));
    config.setConfigProperty(CSVTableModule.ENCODING, getEncoding());

    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.csv.FileName", getFilename()); //$NON-NLS-1$
    config.setConfigProperty(CSVProcessor.CSV_WRITE_STATECOLUMNS, "false"); //$NON-NLS-1$

    return config;
  }
View Full Code Here

TOP

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

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.