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

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


          reportData = dataFactory.queryData(query, new QueryDataRowWrapper(new StaticDataRow(), 1, queryTimeout));
        }

        this.query = query;
        oldQueryTimeout = queryTimeout;
        offlineTableModel = new OfflineTableModel(reportData, new DefaultDataAttributeContext());
      }
      finally
      {
        if (reportData instanceof CloseableTableModel)
        {
View Full Code Here


      }

      final ProcessingContext reportContext = flowController.getReportContext();
      this.definition = definition;
      this.flowController = flowController;
      this.attributeContext = new DefaultDataAttributeContext(reportContext.getOutputProcessorMetaData(),
          reportContext.getResourceBundleFactory().getLocale());

      final Object o = definition.getAttribute(AttributeNames.Wizard.NAMESPACE, "enable");
      if (Boolean.TRUE.equals(o) == false)
      {
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

  private static final Log logger = LogFactory.getLog(StandaloneDataSchemaWriter.class);
  private DataAttributeContext context;

  public StandaloneDataSchemaWriter()
  {
    context = new DefaultDataAttributeContext(new GenericOutputProcessorMetaData(), Locale.US);
  }
View Full Code Here

      throw new NullPointerException();
    }
    this.materialize = true;
    this.relationalModel = true;
    this.emptyTemplate = emptyTemplate;
    this.attributeContext = new DefaultDataAttributeContext();

    try
    {
      this.reportDefinition = (AbstractReportDefinition) emptyTemplate.derive();
    }
View Full Code Here

    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

  private DataAttributes tableAttributes;
  private DataAttributeContext dataAttributeContext;

  public CachableTableModel(final TableModel model)
  {
    dataAttributeContext = new DefaultDataAttributeContext();
    columnAttributes = new ArrayList<DataAttributes>();
    if (model instanceof MetaTableModel)
    {
      final MetaTableModel metaTableModel = (MetaTableModel) model;
      for (int i = 0; i < model.getColumnCount(); i++)
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

    modelChangeHandler = new ReportModelChangeHandler();

    final Action action = createExtendedEditorAction();

    this.eventListenerList = new EventListenerList();
    this.dataAttributeContext = new DefaultDataAttributeContext();
    this.extraFields = EMPTY_EXTRA_FIELDS;

    ellipsisButton = new EllipsisButton("...");
    ellipsisButton.addActionListener(action);
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

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.