public void addAll( final Configuration config ) { final Enumeration<String> configProperties = config.getConfigProperties(); while ( configProperties.hasMoreElements() ) { final String key = configProperties.nextElement(); configuration.setConfigProperty( key, config.getConfigProperty( key ) ); } } }
public void addAll (final Configuration config) { final Enumeration<String> configProperties = config.getConfigProperties(); while (configProperties.hasMoreElements()) { final String key = configProperties.nextElement(); configuration.setConfigProperty(key, config.getConfigProperty(key)); } } }
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() ); config.setConfigProperty( EXPORT_TYPE_CONFIG_KEY, "24pin" ); //$NON-NLS-1$ //$NON-NLS-2$ break; config.setConfigProperty( EXPORT_TYPE_CONFIG_KEY, "9pin" ); //$NON-NLS-1$ //$NON-NLS-2$ break; config.setConfigProperty( EXPORT_TYPE_CONFIG_KEY, "ibm" ); //$NON-NLS-1$ //$NON-NLS-2$ break; config.setConfigProperty( EXPORT_TYPE_CONFIG_KEY, "plain" ); //$NON-NLS-1$ //$NON-NLS-2$ break; throw new IllegalStateException(); config.setConfigProperty( "org.pentaho.reporting.engine.classic.core.modules.gui.plaintext.FileName", getFilename() ); //$NON-NLS-1$
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.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(
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", 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",
public BundleSettings( final Configuration configuration ) { 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; }
/** * Returns a new (and not connected to the default config from the job) configuration containing all properties from * the dialog. * * @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; }
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",
/** * Returns a new (and not connected to the default config from the job) configuration containing all properties from * the dialog. * * @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; }
/** * Returns a new (and not connected to the default config from the job) configuration containing all properties from * the dialog. * * @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; }
final URL value = manager.toURL( contextKey ); if ( value != null ) { parserConfiguration.setConfigProperty( CONTENTBASE_KEY, value.toExternalForm() );
final URL value = manager.toURL( contextKey ); if ( value != null ) { parserConfiguration.setConfigProperty( CONTENTBASE_KEY, value.toExternalForm() );