Package org.pentaho.reporting.engine.classic.core.wizard

Examples of org.pentaho.reporting.engine.classic.core.wizard.DefaultDataAttributeContext


    this.groupDefinition = groupDefinition;

    final DataAttributes attributes = dataSchema.getAttributes(this.groupDefinition.getField());
    if (attributes != null)
    {
      final DefaultDataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();

      if (groupDefinition.getHorizontalAlignment() == null)
      {
        metaDataHorizontalAlignment = (ElementAlignment) attributes.getMetaAttribute
            (MetaAttributeNames.Style.NAMESPACE, MetaAttributeNames.Style.HORIZONTAL_ALIGNMENT,
View Full Code Here



    final DataAttributes attributes = dataSchema.getAttributes(this.parent.getField());
    if (attributes != null)
    {
      final DefaultDataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();

      if (parent.getHorizontalAlignment() == null)
      {
        metaDataHorizontalAlignment = (ElementAlignment) attributes.getMetaAttribute
            (MetaAttributeNames.Style.NAMESPACE, MetaAttributeNames.Style.HORIZONTAL_ALIGNMENT,
View Full Code Here

    this.fieldDefinition = fieldDefinition;

    final DataAttributes attributes = dataSchema.getAttributes(fieldDefinition.getField());
    if (attributes != null)
    {
      final DefaultDataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();
      displayName = (String) attributes.getMetaAttribute
          (MetaAttributeNames.Formatting.NAMESPACE, MetaAttributeNames.Formatting.LABEL,
              String.class, dataAttributeContext);
      if (displayName != null)
      {
View Full Code Here

    }
    this.fieldName = fieldName;
    final DataAttributes attributes = dataSchema.getAttributes(fieldName);
    if (attributes != null)
    {
      final DefaultDataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();
      displayName = (String) attributes.getMetaAttribute
          (MetaAttributeNames.Formatting.NAMESPACE, MetaAttributeNames.Formatting.LABEL,
              String.class, dataAttributeContext);
      if (displayName != null)
      {
View Full Code Here

    this.setSelectableFields(fields);
  }

  private boolean isFilteredField(final DataSchema dataSchema, final String fieldName)
  {
    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext();
    final DataAttributes attributes = dataSchema.getAttributes(fieldName);
    final Object source = attributes.getMetaAttribute
        (MetaAttributeNames.Core.NAMESPACE, MetaAttributeNames.Core.SOURCE, String.class, dac);
    if (MetaAttributeNames.Core.SOURCE_VALUE_ENVIRONMENT.equals(source))
    {
View Full Code Here

    gmr.expressionDataRow = new ExpressionDataRow(gmr, reportContext, includeStucturalProcessing);
    gmr.schemaDefinition = schemaDefinition;
    gmr.dataFactory = new EmptyDataFactory();
    gmr.resourceBundleFactory = reportContext.getResourceBundleFactory();
    gmr.outputProcessorMetaData = reportContext.getOutputProcessorMetaData();
    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext
        (gmr.outputProcessorMetaData, gmr.getResourceBundleFactory().getLocale());
    gmr.schemaCompiler =
        new ProcessingDataSchemaCompiler(schemaDefinition, dac, reportContext.getResourceManager(), null);
    gmr.dataSchema = null;
    gmr.parameterDefinitionEntries = parameterDefinitionEntries;
View Full Code Here

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

    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext
        (outputProcessorMetaData, resourceBundleFactory.getLocale());
    final GlobalMasterRow gmr = (GlobalMasterRow) derive();
    gmr.schemaDefinition = dataSchemaDefinition;
    gmr.schemaCompiler = new ProcessingDataSchemaCompiler
        (dataSchemaDefinition, dac, schemaCompiler.getResourceManager(), schemaCompiler.getGlobalDefaults());
View Full Code Here

    }

    final MetaTableModel metaTableModel = (MetaTableModel) mod;
    final DataAttributes tableAttributes = metaTableModel.getTableAttributes();
    final DataAttributeContext attributeContext =
        new DefaultDataAttributeContext(new GenericOutputProcessorMetaData(), Locale.US);

    final String[] tableAttrDomains = tableAttributes.getMetaAttributeDomains();
    for (int i = 0; i < tableAttrDomains.length; i++)
    {
      final String tableAttrDomain = tableAttrDomains[i];
View Full Code Here

      out.println("TableModel has no cell-meta-data.");
      return;
    }

    final DataAttributeContext attributeContext =
        new DefaultDataAttributeContext(new GenericOutputProcessorMetaData(), Locale.US);

    out.println("Tablemodel contains " + mod.getRowCount() + " rows."); //$NON-NLS-1$ //$NON-NLS-2$
    out.println("Checking the attributes inside"); //$NON-NLS-1$
    for (int rows = 0; rows < mod.getRowCount(); rows++)
    {
View Full Code Here

    if (this.dataSchemaDefinition == null)
    {
      this.dataSchemaDefinition = DataSchemaUtility.parseDefaults
          (masterReportElement.getResourceManager());
    }
    this.dataAttributeContext = new DefaultDataAttributeContext();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.wizard.DefaultDataAttributeContext

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.