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

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


      }

      final MultiplexRootElementHandler handler =
          new MultiplexRootElementHandler(manager, targetKey, contextKey, -1, rootHandlers);

      final DefaultConfiguration parserConfiguration = handler.getParserConfiguration();
      final URL value = manager.toURL(contextKey);
      if (value != null)
      {
        parserConfiguration.setConfigProperty(CONTENTBASE_KEY, value.toExternalForm());
      }

      configureReader(reader, handler);
      reader.setContentHandler(handler);
      reader.setDTDHandler(handler);
View Full Code Here


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

    final String prefix = getConfigurationPrefix();
    config.setConfigProperty(prefix + "TargetFileName", txFilename.getText());
    config.setConfigProperty(prefix + "Encoding", encodingModel.getSelectedEncoding());
    config.getConfigProperty(prefix + "security.PrintLevel", getPrintLevel());
    config.getConfigProperty(prefix + "security.Encryption", getEncryptionValue());


    config.getConfigProperty(prefix + "security.UserPassword", txUserPassword.getText());
    config.getConfigProperty(prefix + "security.OwnerPassword", txOwnerPassword.getText());

    config.setConfigProperty(prefix + "security.AllowAssembly",
        String.valueOf(cxAllowAssembly.isSelected()));
    config.setConfigProperty(prefix + "security.AllowCopy",
        String.valueOf(cxAllowCopy.isSelected()));
    config.setConfigProperty(prefix + "security.AllowFillIn",
        String.valueOf(cxAllowFillIn.isSelected()));
    config.setConfigProperty(prefix + "security.AllowModifyAnnotations",
        String.valueOf(cxAllowModifyAnnotations.isSelected()));
    config.setConfigProperty(prefix + "security.AllowModifyContents",
        String.valueOf(cxAllowModifyContents.isSelected()));
    config.setConfigProperty(prefix + "security.AllowScreenReaders",
        String.valueOf(cxAllowScreenReaders.isSelected()));
    return config;
  }
View Full Code Here

    return "org.jfree.report.modules.gui.common.html.zip.";
  }

  protected Configuration grabDialogContents(boolean full)
  {
    ModifiableConfiguration conf = new DefaultConfiguration();
    if (full)
    {
      conf.setConfigProperty
          ("org.jfree.report.modules.gui.common.html.zip.TargetFileName", filenameField.getText());
      conf.setConfigProperty
          ("org.jfree.report.modules.gui.common.html.zip.DataDirectory", dataDirField.getText());
    }
    conf.setConfigProperty
        ("org.jfree.report.modules.gui.common.html.zip.ExportMethod", getExportMethod());

    return conf;
  }
View Full Code Here

*/
public class DefaultTagDescriptionTest
{
  public static void main(final String[] args)
  {
    final DefaultTagDescription dt = new DefaultTagDescription(new DefaultConfiguration(), "silly-prefix");
    if (dt.hasCData("basas", "adsda") == false)
    {
      throw new IllegalStateException();
    }
  }
View Full Code Here

          ("Given InputStream is null.");
    }

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

      readModuleInfo(props);

      final ArrayList optionalModules = new ArrayList();
      final ArrayList dependendModules = new ArrayList();
      final Iterator keys = props.findPropertyKeys("dependency.");
      while (keys.hasNext())
      {
        final String key = (String) 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

    return "org.jfree.report.modules.gui.common.html.file.";
  }

  protected Configuration grabDialogContents(boolean full)
  {
    ModifiableConfiguration conf = new DefaultConfiguration();
    if (full)
    {
      conf.setConfigProperty
          ("org.jfree.report.modules.gui.common.html.file.TargetFileName", filenameField.getText());
      conf.setConfigProperty
          ("org.jfree.report.modules.gui.common.html.file.DataDirectory", dataDirField.getText());
    }
    conf.setConfigProperty
        ("org.jfree.report.modules.gui.common.html.file.ExportMethod", getExportMethod());

    return conf;
  }
View Full Code Here

    this.sourceDirectory = sourceDirectory;
    this.targetDirectory = targetDirectory;

    final InputStream propIn = ObjectUtilities.getResourceRelativeAsStream
            ("encodings.properties", EncodingGenerator.class);
    propertySet = new DefaultConfiguration();
    try
    {
      propertySet.load(propIn);
    }
    finally
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

  private DefaultConfiguration config;

  public PentahoReportConfiguration() {
    setOpeningBraceChar( '(' );
    setClosingBraceChar( ')' );
    config = new DefaultConfiguration();
    final ISystemSettings cfg = PentahoSystem.getSystemSettings();
    if ( cfg == null ) {
      return;
    }
    final List reportSettings = cfg.getSystemSettings( "report-config/entry" ); //$NON-NLS-1$
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

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.