Examples of DefaultDataAttributeContext


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

  {
    final ContextAwareDataSchemaModel model = reportContext.getReportDataSchemaModel();
    final String[] columnNames = model.getColumnNames();
    final ArrayList<FieldDefinition> fields = new ArrayList<FieldDefinition>(columnNames.length + extraFields.length);
    final DataSchema dataSchema = model.getDataSchema();
    final DefaultDataAttributeContext dataAttributeContext = new DefaultDataAttributeContext();

    for (int i = 0; i < extraFields.length; i++)
    {
      final String extraField = extraFields[i];
      fields.add(new DataSchemaFieldDefinition(extraField, new EmptyDataAttributes(), dataAttributeContext));
View Full Code Here

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

  private boolean initialized;

  public StructureFunctionCellEditor()
  {
    eventListenerList = new EventListenerList();
    this.dataAttributeContext = new DefaultDataAttributeContext();

    final EllipsisButton ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(new ExtendedEditorAction());

    expressionEditor = new SmartComboBox<ExpressionMetaData>();
View Full Code Here

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

    final DataAttributes data = rfc.getDataSchema().getAttributes(fieldName);
    if (data == null)
    {
      throw EvaluationException.getInstance(LibFormulaErrorValue.ERROR_INVALID_ARGUMENT_VALUE);
    }
    final DefaultDataAttributeContext attributeContext =
        new DefaultDataAttributeContext(rfc.getProcessingContext().getOutputProcessorMetaData(),
            rfc.getLocalizationContext().getLocale());
    final Object o = data.getMetaAttribute(metaNamespace, metaName, type, attributeContext);
    return new TypeValuePair(AnyType.TYPE, o);
  }
View Full Code Here

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

    }
    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

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

    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

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

      {
        final String labelForText = (String) labelFor;
        final DataAttributes attributes = runtime.getDataSchema().getAttributes(labelForText);
        if (attributes != null)
        {
          final DefaultDataAttributeContext context = new DefaultDataAttributeContext
              (runtime.getProcessingContext().getOutputProcessorMetaData(),
                  runtime.getResourceBundleFactory().getLocale());
          final Object o = attributes.getMetaAttribute
              (MetaAttributeNames.Formatting.NAMESPACE, MetaAttributeNames.Formatting.LABEL, String.class, context);
          if (o != null)
View Full Code Here

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

      throw new NullPointerException();
    }
    this.materialize = true;
    this.relationalModel = true;
    this.emptyTemplate = emptyTemplate;
    this.attributeContext = new DefaultDataAttributeContext();
    this.reportDefinition = (AbstractReportDefinition) emptyTemplate.derive();
  }
View Full Code Here

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

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


    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

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

    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
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.