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

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


    }

    final DefaultDataAttributes globalAttributes = getGlobalAttributes();
    final MetaSelectorRule[] indirectRules = getIndirectRules();
    final DirectFieldSelectorRule[] directRules = getDirectRules();
    final DataAttributeContext context = getContext();
    final ParameterDataRow parameters = masterRow.getParameterDataRow();
    final ExpressionDataRow expressionsRow = masterRow.getExpressionDataRow();
    final ReportDataRow massDataRow = masterRow.getReportDataRow();
    // imported data has been compiled in the subreport ...
    final ImportedVariablesDataRow importedDataRow = masterRow.getImportedDataRow();
View Full Code Here


      return;
    }

    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++)
    {
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

        }
        final String[] columnSet = computeColumns(crosstabGroup);
        final ReportStateKey processKey = state.getProcessKey();
        final DataSchema dataSchema = getRuntime().getDataSchema();
        final DataAttributes tableAttributes = dataSchema.getTableAttributes();
        final DataAttributeContext context = new DefaultDataAttributeContext
            (getRuntime().getProcessingContext().getOutputProcessorMetaData(),
                getRuntime().getResourceBundleFactory().getLocale());

        final String mode = (String) tableAttributes.getMetaAttribute
            (MetaAttributeNames.Core.NAMESPACE, MetaAttributeNames.Core.CROSSTAB_MODE, String.class, context);
View Full Code Here

      // this metadata layer is not cloneable, so malicious client code may
      // modify metadata objects.
      // We cant solve the problem here, so all we can do is hope and pray.

      final DataAttributeContext context = new DefaultDataAttributeContext();
      for (int i = 0; i < conceptMappers.size(); i++)
      {
        final ConceptQueryMapper conceptMapper = conceptMappers.get(i);
        final Object ivalue = conceptMapper.getValue(value, null, context);
        if (ivalue != null)
View Full Code Here

  private String[] filterDatabaseColumn(final ContextAwareDataSchemaModel dataSchemaModel)
  {
    final ArrayList<String> fields = new ArrayList<String>();
    final String[] columnNames = dataSchemaModel.getColumnNames();
    final DataAttributeContext dac = dataSchemaModel.getDataAttributeContext();
    for (final String columnName : columnNames)
    {
      final DataAttributes attributes = dataSchemaModel.getDataSchema().getAttributes(columnName);
      final Object sourceAttribute = attributes.getMetaAttribute
          (MetaAttributeNames.Core.NAMESPACE, MetaAttributeNames.Core.SOURCE, String.class, dac);
View Full Code Here

  {

    final ContextAwareDataSchemaModel model = editorContext.getRenderContext().getReportDataSchemaModel();
    final DataSchema dataSchema = model.getDataSchema();
    final DataAttributes attributes = dataSchema.getAttributes(fieldName);
    final DataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();
    if (attributes == null)
    {
      return null;
    }
    final ElementType type = AutoGeneratorUtility.createFieldType(attributes, dataAttributeContext);
View Full Code Here

    if (model != null && value instanceof String)
    {
      String field = (String) value;
      final DataAttributes attributes = model.getDataSchema().getAttributes(field);
      final DataAttributeContext dac = model.getDataAttributeContext();
      if (attributes != null)
      {
        Class fieldClass = configureFieldType(attributes, dac);
        configureFieldText(field, fieldClass, attributes, dac);
        configureFieldIcon(attributes, dac);
View Full Code Here

                                  final Color background)
  {
    final ElementType targetType;
    if (dataSchemaModel != null)
    {
      final DataAttributeContext context = dataSchemaModel.getDataAttributeContext();
      final DataAttributes attributes = dataSchemaModel.getDataSchema().getAttributes(fieldName);
      targetType = AutoGeneratorUtility.createFieldType(attributes, context);
    }
    else
    {
View Full Code Here

      return;
    }

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

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

TOP

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

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.