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

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


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

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

  {
    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

    this.processingContext = processingContext;
    this.data = data;
    this.currentRow = currentRow;
    dataRow = new StaticDataRow(new String[0], new Object[0]);
    dataSchema = new DefaultDataSchema();
    configuration = new DefaultConfiguration();
    resourceBundleFactory = new DefaultResourceBundleFactory();
    dataFactory = new CompoundDataFactory();
  }
View Full Code Here

  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    try
    {
      final DefaultConfiguration p = new DefaultConfiguration();
      if (url != null)
      {
        p.setConfigProperty("repository-path", url.toExternalForm());
      }
      cs.store(configPath, p);
    }
    catch (Exception e)
    {
View Full Code Here

    private final DefaultConfiguration props;
    private final NamespaceDefinition[] namespaces;

    private OfficeParserUtil()
    {
        props = new DefaultConfiguration();

        final ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();
        try
        {
View Full Code Here

  {
    final String configPath = ConfigFactory.encodePath("SwingIconsDemo-TableModel");
    final ConfigStorage cs = ConfigFactory.getInstance().getUserStorage();
    try
    {
      final DefaultConfiguration p = new DefaultConfiguration();
      if (url != null)
      {
        p.setConfigProperty("repository-path", url.toExternalForm());
      }
      cs.store(configPath, p);
    }
    catch (Exception e)
    {
View Full Code Here

          ("Given InputStream is null.");
    }

    try
    {
      final DefaultConfiguration props = new DefaultConfiguration();
      props.load(in);

      readModuleInfo(props);

      final ArrayList<ModuleInfo> optionalModules = new ArrayList<ModuleInfo>();
      final ArrayList<ModuleInfo> dependentModules = new ArrayList<ModuleInfo>();
      final Iterator<String> keys = props.findPropertyKeys("dependency.");
      while (keys.hasNext())
      {
        final String key = keys.next();
        if (key.endsWith(".dependency-type"))
        {
          final String moduleHandle = key.substring(0, key.length() - ".dependency-type".length());
          final DefaultModuleInfo module = readExternalModule(props, moduleHandle);
          if ("optional".equals(props.getConfigProperty(key)))
          {
            optionalModules.add(module);
          }
          else
          {
View Full Code Here

    super(s);
  }

  public void testSillyTag()
  {
    final DefaultTagDescription dt = new DefaultTagDescription(new DefaultConfiguration(), "silly-prefix");
    assertTrue(dt.hasCData("basas", "adsda"));
  }
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.