/** * Sets the value of a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty( final String key, final String value ) { if ( value == null ) { remove( key ); } else { setProperty( key, value ); } } }
/** * Sets a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty( final String key, final String value ) { if ( key == null ) { throw new NullPointerException(); } if ( value == null ) { this.configuration.remove( key ); } else { this.configuration.setProperty( key, value ); } }
/** * Sets the value of a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty(final String key, final String value) { if (value == null) { remove(key); } else { setProperty(key, value); } } }
/** * Sets a configuration property. * * @param key the property key. * @param value the property value. */ public void setConfigProperty(final String key, final String value) { if (key == null) { throw new NullPointerException(); } if (value == null) { this.configuration.remove(key); } else { this.configuration.setProperty(key, value); } }
/** * 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.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; }
/** * 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 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() );
/** * 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; }