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

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


    getFormValidator().registerTextField(txDataFilename);
    getFormValidator().registerComboBox(cbEncoding);

    final JPanel exportPane = createExportPanel();

    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final boolean advancedSettingsTabAvail =
        "true".equals(config.getConfigProperty(
            "org.pentaho.reporting.engine.classic.core.modules.gui.html.file.AdvancedSettingsAvailable"));
    final boolean metaDataSettingsTabAvail =
        "true".equals(config.getConfigProperty(
            "org.pentaho.reporting.engine.classic.core.modules.gui.html.file.MetaDataSettingsAvailable"));
    final JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(getResources().getString("htmlexportdialog.export-settings"), exportPane); //$NON-NLS-1$
    tabbedPane.add(getResources().getString("htmlexportdialog.parameters"), getParametersPanel());
    if (metaDataSettingsTabAvail)
View Full Code Here


    final ElementType type = element.getElementType();
    final String metaName = type.getMetaData().getName();
    final String configKey = PREFIX + metaName;

    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final String handlerClass = config.getConfigProperty(configKey);
    final BundleElementWriteHandler handler = (BundleElementWriteHandler) ObjectUtilities.loadAndInstantiate
        (handlerClass, type.getClass(), BundleElementWriteHandler.class);
    if (handler == null)
    {
      throw new IllegalStateException("Got no handler for type " + metaName);
View Full Code Here

    final BundleWriterState contentFileState = new BundleWriterState(state, "content.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(contentFileState.getFileName(),
        "text/xml"));
    final Configuration globalConfig = ClassicEngineBoot.getInstance().getGlobalConfig();
    final DefaultTagDescription tagDescription = new DefaultTagDescription(globalConfig,
        BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter
        (new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");
View Full Code Here

    }

    this.progressDialog = progressDialog;
    this.report = report;

    final Configuration config = report.getConfiguration();
    final String dataDirectoryName = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.file.DataDirectory"); //$NON-NLS-1$
    final String targetFileName = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.file.TargetFileName"); //$NON-NLS-1$
    exportMethod = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.file.ExportMethod"); //$NON-NLS-1$

    try
    {
      if (swingGuiContext != null)
View Full Code Here

    setError(null);
    try
    {
      final MasterReport masterReport = getReport();
      final Configuration configuration = masterReport.getConfiguration();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
      final ContentItem contentItem =
          contentLocation.createItem(nameGenerator.generateName(null, "text/plain"));
      final OutputStream outputStream = contentItem.getOutputStream();

      try
      {
        final String cpiText = configuration.getConfigProperty
            ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.CharsPerInch");
        final String lpiText = configuration.getConfigProperty
            ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.LinesPerInch");

        final TextFilePrinterDriver driver = new TextFilePrinterDriver
            (outputStream, ParserUtil.parseInt(cpiText, 10), ParserUtil.parseInt(lpiText, 6));
View Full Code Here

    getFormValidator().registerButton(rbIBMPrinterCommandSet);
    getFormValidator().registerButton(rbPlainPrinterCommandSet);

    final JComponent exportPane = createExportPane();

    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    final boolean advancedSettingsTabAvail =
        "true".equals(config.getConfigProperty(
            "org.pentaho.reporting.engine.classic.core.modules.gui.plaintext.AdvancedSettingsAvailable"));
    final JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(getResources().getString("plain-text-exportdialog.export-settings"), exportPane); //$NON-NLS-1$
    tabbedPane.add(getResources().getString("plain-text-exportdialog.parameters"), getParametersPanel());
View Full Code Here

  protected static boolean isParanoidChecks()
  {
    if (paranoidModelChecks == null)
    {
      final Configuration configuration = ClassicEngineBoot.getInstance().getGlobalConfig();
      if ("true".equals(configuration.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.layout.ParanoidChecks")))
      {
        paranoidModelChecks = Boolean.TRUE;
      }
      else
View Full Code Here

    final JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(getResources().getString("csvexportdialog.export-settings"), exportPane); //$NON-NLS-1$
    tabbedPane.add(getResources().getString("csvexportdialog.parameters"), getParametersPanel());

    // button panel
    final Configuration config = ClassicEngineBoot.getInstance().getGlobalConfig();
    if ("true".equals(config.getConfigProperty(
        "org.pentaho.reporting.engine.classic.core.modules.gui.csv.table.AdvancedSettingsAvailable")))
    {
      final JPanel advancedOptionsPane = createAdvancedOptionsPanel();
      tabbedPane.add(getResources().getString("csvexportdialog.advanced-settings"), advancedOptionsPane); //$NON-NLS-1$
View Full Code Here

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

    final Configuration configuration = context.getConfiguration();
    final String prefix = DefaultActionFactory.PREFIX + category;
    final Iterator keys = configuration.findPropertyKeys(prefix);
    if (keys.hasNext() == false)
    {
      DefaultActionFactory.logger.debug(DefaultActionFactory.MESSAGES.getString("DefaultActionFactory.DEBUG_NO_ACTIONS",
          category)); //$NON-NLS-1$
      return DefaultActionFactory.EMPTY_ACTIONS;
    }

    final HashMap plugins = new HashMap();
    while (keys.hasNext())
    {
      final String key = (String) keys.next();
      final String base = key.substring(prefix.length());
      if (isPluginKey(base) == false)
      {
        // Maybe an invalid key or a key for a sub-category ..
        continue;
      }

      final String clazz = configuration.getConfigProperty(key);
      final Object maybeActionPlugin = ObjectUtilities.loadAndInstantiate
          (clazz, DefaultActionFactory.class, ActionPlugin.class);
      if (maybeActionPlugin == null)
      {
        DefaultActionFactory.logger.debug(DefaultActionFactory.MESSAGES.getString(
View Full Code Here

    if (report == null)
    {
      throw new ReportProcessingException("HtmlZipExportTask(..): Report-Parameter cannot be null"); //$NON-NLS-1$
    }

    final Configuration config = report.getConfiguration();
    dataDirectory = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.DataDirectory"); //$NON-NLS-1$
    final String targetFileName = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.TargetFileName"); //$NON-NLS-1$
    exportMethod = config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.gui.html.zip.ExportMethod"); //$NON-NLS-1$

    this.progressDialog = dialog;
    this.report = report;
    if (swingGuiContext != null)
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.config.Configuration

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.