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

Examples of org.pentaho.reporting.engine.classic.core.MetaTableModel


        defaultDataSchema.setAttributes(colName, computedParameterDataAttributes);
      }
    }
    else
    {
      final MetaTableModel mt = (MetaTableModel) data;

      final DefaultDataAttributes tableGlobalAttributes = new DefaultDataAttributes();
      tableGlobalAttributes.merge(globalAttributes, context);
      tableGlobalAttributes.merge(mt.getTableAttributes(), context);

      try
      {
        defaultDataSchema.setTableAttributes(tableGlobalAttributes);
      }
      catch (CloneNotSupportedException e)
      {
        logger.warn("Unable to copy global data-attributes", e);
      }

      final int count = data.getColumnCount();
      for (int i = 0; i < count; i++)
      {
        final String colName = data.getColumnName(i);
        if (colName == null)
        {
          continue;
        }

        final DefaultDataAttributes computedParameterDataAttributes = new DefaultDataAttributes();
        computedParameterDataAttributes.merge(tableGlobalAttributes, context);
        computedParameterDataAttributes.merge(mt.getColumnAttributes(i), context);

        tableDataAttributes.setup(colName, data.getColumnClass(i),
            MetaAttributeNames.Core.SOURCE_VALUE_TABLE, null, EmptyDataAttributes.INSTANCE);
        computedParameterDataAttributes.merge(tableDataAttributes, context);
View Full Code Here


          defaultDataSchema.setAttributes(colName, computedParameterDataAttributes);
        }
      }
      else
      {
        final MetaTableModel mt = (MetaTableModel) data;

        final DefaultDataAttributes tableGlobalAttributes = new DefaultDataAttributes();
        tableGlobalAttributes.merge(globalAttributes, context);
        tableGlobalAttributes.merge(mt.getTableAttributes(), context);
        try
        {
          defaultDataSchema.setTableAttributes(tableGlobalAttributes);
        }
        catch (CloneNotSupportedException e)
        {
          logger.warn("Unable to copy global data-attributes", e);
        }

        final int count = data.getColumnCount();
        for (int i = 0; i < count; i++)
        {
          final String colName = data.getColumnName(i);
          final DefaultDataAttributes computedParameterDataAttributes = new DefaultDataAttributes();
          computedParameterDataAttributes.merge(tableGlobalAttributes, context);
          computedParameterDataAttributes.merge(mt.getColumnAttributes(i), context);

          parameterDataAttributes.setup(colName, data.getColumnClass(i),
              MetaAttributeNames.Core.SOURCE_VALUE_TABLE, null, EmptyDataAttributes.INSTANCE);
          computedParameterDataAttributes.merge(parameterDataAttributes, context);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.MetaTableModel

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.