Examples of InstanceID


Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

   */
  private InstanceID id;

  protected AbstractStyleSheet()
  {
    this.id = new InstanceID();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

  }

  public StyleSheet derive() throws CloneNotSupportedException
  {
    final AbstractStyleSheet s = (AbstractStyleSheet) super.clone();
    s.id = new InstanceID();
    return s;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

  private long changeTracker;
  private InstanceID instanceId;

  public SimpleStyleSheet(final StyleSheet parent)
  {
    this(new InstanceID(), parent);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

      // to this wrapper-stylesheet.
      nonPaddingWrapperStyleSheet.setParent(parent);

      try
      {
        final InstanceID id = nonPaddingWrapperStyleSheet.getId();
        lookupKey.setStyleClass(NonPaddingWrapperStyleSheet.class.getName());
        lookupKey.setInstanceId(id);
        final CacheCarrier cc = (CacheCarrier) cache.get(lookupKey);
        if (cc == null)
        {
          final CacheKey key = new CacheKey(id, NonPaddingWrapperStyleSheet.class.getName());
          final SimpleStyleSheet styleSheet = new SimpleStyleSheet(nonPaddingWrapperStyleSheet);
          cache.put(key, new CacheCarrier(nonPaddingWrapperStyleSheet.getChangeTracker(), styleSheet));
          return styleSheet;
        }

        if (cc.getChangeTracker() != nonPaddingWrapperStyleSheet.getChangeTracker())
        {
          final CacheKey key = new CacheKey(id, NonPaddingWrapperStyleSheet.class.getName());
          final SimpleStyleSheet styleSheet = new SimpleStyleSheet(nonPaddingWrapperStyleSheet);
          cache.put(key, new CacheCarrier(nonPaddingWrapperStyleSheet.getChangeTracker(), styleSheet));
          return styleSheet;
        }

        return cc.getStyleSheet();
      }
      finally
      {
        nonPaddingWrapperStyleSheet.setParent(null);
      }
    }

    final InstanceID id = parent.getId();
    final String styleClass = parent.getClass().getName();
    lookupKey.setStyleClass(styleClass);
    lookupKey.setInstanceId(id);
    final CacheCarrier cc = (CacheCarrier) cache.get(lookupKey);
    if (cc == null)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

   * <p/>
   * A datasource is assigned with this element is set to a default source, which always returns null.
   */
  public Element()
  {
    treeLock = new InstanceID();
    datasource = Element.NULL_DATASOURCE;
    style = new InternalElementStyleSheet(this);
    attributes = new ReportAttributeMap();
    attributes.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.ELEMENT_TYPE, LegacyType.INSTANCE);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

   * @throws CloneNotSupportedException if there was an error while cloning this or any child object.
   */
  public Element derive() throws CloneNotSupportedException
  {
    final Element e = (Element) super.clone();
    e.treeLock = new InstanceID();
    e.style = (InternalElementStyleSheet) style.derive();
    e.datasource = (DataSource) datasource.clone();
    e.parent = null;
    e.style.updateElementReference(e);
    e.attributes = (ReportAttributeMap) attributes.clone();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

      sectionBoxes[type] = null;
      return renderBox;
    }

    return new SectionRenderBox
        (bandWithoutKeepTogetherStyle, new InstanceID(), boxDefinition, AutoLayoutBoxType.INSTANCE,
            ReportAttributeMap.EMPTY_MAP, null);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

        }

        final GroupSection section = (GroupSection) tempList[i];

        final RenderBox groupBox = section.getGroupBox();
        final InstanceID groupBoxInstanceId = groupBox.getInstanceId();
        final RenderBox groupBoxClone = (RenderBox) renderer.pageBox.findNodeById(groupBoxInstanceId);
        if (groupBoxClone == null)
        {
          throw new IllegalStateException("The pagebox did no longer contain the stored node.");
        }
        if (groupBoxClone == groupBox)
        {
          throw new IllegalStateException("Thought you wanted a groupBoxClone");
        }

        final RenderBox addBox = section.getAddBox();
        final RenderBox addBoxClone;
        if (addBox == groupBox)
        {
          addBoxClone = groupBoxClone;
        }
        else
        {
          final InstanceID addBoxInstanceId = addBox.getInstanceId();
          addBoxClone = (RenderBox) renderer.pageBox.findNodeById(addBoxInstanceId);
          if (addBoxClone == null)
          {
            throw new IllegalStateException("The pagebox did no longer contain the stored node.");
          }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

          new ManualBreakIndicatorStyleSheet(BandDefaultStyleSheet.getBandDefaultStyle());
      this.manualBreakBoxStyle = new SimpleStyleSheet(mbis);
    }

    final RenderBox sectionBox = new BreakMarkerRenderBox
        (manualBreakBoxStyle, new InstanceID(), BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE,
            ReportAttributeMap.EMPTY_MAP, stateKey);
    sectionBox.setName("pagebreak");
    sectionBox.close();
    addBox(sectionBox);
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.InstanceID

        if (addBox != groupBox)
        {
          addBox.close();
        }
        final BlockRenderBox commonBox = new BlockRenderBox
            (styleSheet, new InstanceID(), BoxDefinition.EMPTY, AutoLayoutBoxType.INSTANCE,
                ReportAttributeMap.EMPTY_MAP, null);
        commonBox.setName("Common-Section");
        groupBox.addChild(commonBox);
        addBox = commonBox;
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.