Examples of AttributeMetaData


Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

    }
  }

  public boolean isCellEditable(final int rowIndex, final int columnIndex)
  {
    final AttributeMetaData metaData = getMetaData(rowIndex);
    if (metaData == null)
    {
      return false;
    }

    switch (columnIndex)
    {
      case 0:
        return false;
      case 1:
        return "ElementType".equals(metaData.getValueRole()) == false; // $NON-NLS$
      case 2:
      {
        if ("ElementType".equals(metaData.getValueRole()))// $NON-NLS$
        {
          return false;
        }
        if (metaData.isDesignTimeValue())
        {
          return false;
        }
        return true;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

  }


  public void setValueAt(final Object aValue, final int rowIndex, final int columnIndex)
  {
    final AttributeMetaData metaData = getMetaData(rowIndex);
    if (metaData == null)
    {
      return;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

    return lastElement;
  }

  public Class getClassForCell(final int rowIndex, final int columnIndex)
  {
    final AttributeMetaData metaData = getMetaData(rowIndex);
    if (metaData == null)
    {
      return GroupingHeader.class;
    }

    switch (columnIndex)
    {
      case 0:
        return GroupedName.class;
      case 1:
        return metaData.getTargetType();
      case 2:
        if (metaData.isDesignTimeValue())
        {
          // disables the expression-editor.
          return Object.class;
        }
        return Expression.class;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

    }
  }

  public PropertyEditor getEditorForCell(final int rowIndex, final int columnIndex)
  {
    final AttributeMetaData metaData = getMetaData(rowIndex);
    if (metaData == null)
    {
      return null;
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

    if (column != 1)
    {
      return null;
    }

    final AttributeMetaData metaData = getMetaData(row);
    if (metaData == null)
    {
      return null;
    }
    return metaData.getValueRole();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.metadata.AttributeMetaData

    if (column == 0)
    {
      return EMPTY_FIELDS;
    }

    final AttributeMetaData metaData = getMetaData(row);
    if (metaData == null)
    {
      return EMPTY_FIELDS;
    }
    return metaData.getExtraCalculationFields();
  }
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.