Examples of registerDefaults()


Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  {
    final ReportDefinition reportDefinition = getReportDefinition();
    if (reportDefinition instanceof AbstractReportDefinition == false)
    {
      final ResourceManager retval = new ResourceManager();
      retval.registerDefaults();
      return retval;
    }

    final AbstractReportDefinition abstractReportDefinition = (AbstractReportDefinition) reportDefinition;
    return abstractReportDefinition.getResourceManager();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

    }

    try
    {
      final ResourceManager resourceManager = new ResourceManager();
      resourceManager.registerDefaults();
      final Resource resource = resourceManager.createDirectly(url, Image.class);

      this.url = url;
      this.resourceKey = resource.getSource();
      this.image = (Image) resource.getResource();
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

      }
      parent = parent.getParentSection();
    }

    final ResourceManager manager = new ResourceManager();
    manager.registerDefaults();
    return manager;
  }
}
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

    final File file = new File (textField.getText());

    try
    {
      ResourceManager manager = new ResourceManager();
      manager.registerDefaults();
      Resource res = manager.createDirectly(file, MasterReport.class);
      return (MasterReport) res.getResource();
    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

    private OfficeParserUtil()
    {
        props = new DefaultConfiguration();

        final ResourceManager resourceManager = new ResourceManager();
        resourceManager.registerDefaults();
        try
        {
            final Resource res = resourceManager.createDirectly("res://com/sun/star/report/pentaho/parser/selectors.properties", Properties.class);
            final Properties resProps = (Properties) res.getResource();
            props.putAll(resProps);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  public void testLayoutEmptyBand() throws Exception
  {
    final URL url = ReportLayouterTest.class.getResource("report-layouter-01.prpt");
    final ResourceManager resourceManager = new ResourceManager();
    resourceManager.registerDefaults();
    final Resource resource = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport report = (MasterReport) resource.getResource();

    final ReportLayouter l = new ReportLayouter
        (new ReportRenderContext(report, report, null, new GlobalAuthenticationStore()));
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  {
    final URL resource = getClass().getResource("Prd-4634.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 reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  {
    final URL resource = getClass().getResource("Prd-4634.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 reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  {
    final URL resource = getClass().getResource("Prd-4634.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 reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceManager.registerDefaults()

  {
    final URL resource = getClass().getResource("Prd-4638.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 reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.