Package org.pentaho.reporting.libraries.resourceloader

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager


  public void testBandedSubReport () throws Exception
  {
    final URL resource = getClass().getResource("Prd-4637.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext masterContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final SubReport subReport = report.getItemBand().getSubReport(0);
View Full Code Here


  public void testInlineSubReport () throws Exception
  {
    final URL resource = getClass().getResource("Prd-4637.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext masterContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final SubReport subReport = (SubReport) report.getReportHeader().getElement(0);
View Full Code Here

  public void testInlineBandedSubReport () throws Exception
  {
    final URL resource = getClass().getResource("Prd-4637.prpt");
    assertNotNull(resource);

    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext masterContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final SubReport subReport = (SubReport) report.getReportHeader().getElement(0);
View Full Code Here

      final Configuration configuration = ReportDesignerBoot.getInstance().getGlobalConfig();
      final String xulDocument = configuration.getConfigProperty
          ("org.pentaho.reporting.designer.core.editor.drilldown.xul-document." + configurationTag, // NON-NLS
              "res://org/pentaho/reporting/designer/core/editor/drilldown/basic/basic-drilldown.xul"); // NON-NLS

      final ResourceManager resourceManager = new ResourceManager();
      final Resource resource = resourceManager.createDirectly(xulDocument, Document.class);
      final Document document = (Document) resource.getResource();
      final DOMReader domReader = new DOMReader();
      final XulDomContainer container = loader.loadXulFragment(domReader.read(document));

View Full Code Here

    final DefaultMutableTreeNode root = new DefaultMutableTreeNode(Messages.getString("WelcomePane.samples"));// NON-NLS
    final DefaultTreeModel model = new DefaultTreeModel(root);

    try
    {
      final ResourceManager resourceManager = new ResourceManager();
      final HashMap cache = loadFromCache(resourceManager);

      final File installationDirectory = SettingsUtil.computeInstallationDirectory();
      if (installationDirectory != null)
      {
View Full Code Here

    private ResourceBundleFactory resourceBundleFactory;
    private ResourceManager resourceManager;

    private EditorParameterContext()
    {
      resourceManager = new ResourceManager();
      resourceBundleFactory = new DefaultResourceBundleFactory();
      defaultEnvironment = new DefaultReportEnvironment(ClassicEngineBoot.getInstance().getGlobalConfig());
      defaultDocumentMetaData = new MemoryDocumentMetaData();

      final ReportEnvironmentDataRow envDataRow = new ReportEnvironmentDataRow(defaultEnvironment);
View Full Code Here

    if (SaveReportUtilities.saveReport(context, activeContext, target))
    {
      try
      {
        // Update the definition source to be the location from which the file is saved
        final ResourceManager resourceManager = report.getResourceManager();
        final Resource bundleResource = resourceManager.createDirectly(target, DocumentBundle.class);
        final DocumentBundle bundle = (DocumentBundle) bundleResource.getResource();
        final ResourceKey bundleKey = bundle.getBundleKey();
        report.setDefinitionSource(bundleKey);
        report.setContentBase(bundleKey);
        report.setResourceManager(bundle.getResourceManager());
View Full Code Here

     */
    public void run()
    {
      try
      {
        final ResourceManager mgr = new ResourceManager();
        final Resource directly = mgr.createDirectly(file, ElementStyleDefinition.class);
        styleDefinition = (ElementStyleDefinition) directly.getResource();
      }
      catch (Exception e)
      {
        this.exception = e;
View Full Code Here

    if (dataSchema == null)
    {
      final ParameterDataRow parameterRow = computeParameterData();
      final ParameterDefinitionEntry[] parameterDefinitions = computeParameterDefinitionEntries();

      final ResourceManager resourceManager = getMasterReportElement().getResourceManager();
      final DataSchemaCompiler dataSchemaCompiler =
          new DataSchemaCompiler(getDataSchemaDefinition(), getDataAttributeContext(), resourceManager);

      try
      {
View Full Code Here

    // Update the definition source to be the location from which the file is saved
    {
      try
      {
        // Update the definition source to be the location from which the file is saved
        final ResourceManager resourceManager = report.getResourceManager();
        final Resource bundleResource = resourceManager.createDirectly(target, DocumentBundle.class);
        final DocumentBundle bundle = (DocumentBundle) bundleResource.getResource();
        final ResourceKey bundleKey = bundle.getBundleKey();
        report.setDefinitionSource(bundleKey);
        report.setContentBase(bundleKey);
        report.setBundle(bundle);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.resourceloader.ResourceManager

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.