Examples of DefaultConfiguration


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

   * @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

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

   * @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

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

   * @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

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

  /**
   * 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

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

   * @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

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(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

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

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

    final DefaultConfiguration encodingConfig = new DefaultConfiguration();
    encodingConfig.load(in);
    final PropertyPrinterSpecificationLoader loader = new PropertyPrinterSpecificationLoader();
    final PrinterEncoding[] encodings = loader.loadEncodings(encodingConfig);
    final PrinterSpecification[] printers = loader.loadPrinters(encodingConfig, encodings);

    // if there is a valid printer definition available, we do not
View Full Code Here

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

   * @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.stream.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

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

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

    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Keywords", //$NON-NLS-1$
        txKeywords.getText());
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Description", //$NON-NLS-1$
        txDescription.getText());
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Author", //$NON-NLS-1$
        txAuthor.getText());
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Title", //$NON-NLS-1$
        txTitle.getText());

    config.setConfigProperty("org.pentaho.reporting.engine.classic.core.modules.gui.pdf.TargetFileName", //$NON-NLS-1$
        txFilename.getText());
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Encoding", //$NON-NLS-1$
        encodingModel.getSelectedEncoding());

    config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.PrintLevel", //$NON-NLS-1$
        getPrintLevel());
    config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Encryption", //$NON-NLS-1$
        getEncryptionValue());
    config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.UserPassword", //$NON-NLS-1$
        txUserPassword.getText());
    config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.OwnerPassword", //$NON-NLS-1$
        txOwnerPassword.getText());
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowAssembly", //$NON-NLS-1$
        String.valueOf(cxAllowAssembly.isSelected()));
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowCopy", //$NON-NLS-1$
        String.valueOf(cxAllowCopy.isSelected()));
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowFillIn", //$NON-NLS-1$
        String.valueOf(cxAllowFillIn.isSelected()));
    config.setConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowModifyAnnotations", //$NON-NLS-1$
        String.valueOf(cxAllowModifyAnnotations.isSelected()));
    config.setConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowModifyContents", //$NON-NLS-1$
        String.valueOf(cxAllowModifyContents.isSelected()));
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.AllowScreenReaders", //$NON-NLS-1$
        String.valueOf(cxAllowScreenReaders.isSelected()));
    config.setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.EmbedFonts", //$NON-NLS-1$
        String.valueOf(cxEmbedded.isSelected()));
    return config;
  }
View Full Code Here

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

  {
    this.processingContext = processingContext;
    this.data = data;
    this.currentRow = currentRow;
    dataRow = new DataRowConnector();
    configuration = new DefaultConfiguration();
    resourceBundleFactory = new DefaultResourceBundleFactory();
    dataSchema = new DefaultDataSchema();
  }
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.