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

Examples of org.pentaho.reporting.engine.classic.core.filter.types.LabelType


public class LabelReportElementReadHandler extends AbstractTextElementReadHandler
{
  public LabelReportElementReadHandler()
  {
    final Element element = new Element();
    element.setElementType(new LabelType());
    setElement(element);
  }
View Full Code Here


      {
        return;
      }

      final Element headerLabelElement = new Element();
      headerLabelElement.setElementType(new LabelType());
      if (groupDefinition.getDisplayName() != null)
      {
        headerLabelElement.setAttribute
            (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, groupDefinition.getDisplayName());
      }
View Full Code Here

    final Element footerValueElement = AutoGeneratorUtility.generateFooterElement
        (aggFunctionClass, computeElementType(groupDefinition),
            groupDefinition.getGroupName(), groupDefinition.getField());

    final Element footerLabelElement = new Element();
    footerLabelElement.setElementType(new LabelType());
    if (groupDefinition.getGroupTotalsLabel() != null)
    {
      footerLabelElement.setAttribute
          (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, groupDefinition.getGroupTotalsLabel());
    }
View Full Code Here

                                              final String fieldName)
  {
    if (aggregationType == null)
    {
      final Element footerValueElement = new Element();
      footerValueElement.setElementType(new LabelType());
      footerValueElement.setAttribute
          (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, "");
      footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
          AttributeNames.Wizard.ALLOW_METADATA_STYLING, Boolean.TRUE);
      footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
View Full Code Here

  public static Element generateHeaderElement(final String fieldName)
  {
    final Element headerElement = new Element();
    headerElement.getStyle().setStyleProperty(ElementStyleKeys.DYNAMIC_HEIGHT, Boolean.TRUE);
    headerElement.setElementType(new LabelType());
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.LABEL_FOR, fieldName);
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
        AttributeNames.Wizard.ALLOW_METADATA_STYLING, Boolean.TRUE);
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
        AttributeNames.Wizard.ALLOW_METADATA_ATTRIBUTES, Boolean.TRUE);
View Full Code Here

   * @see org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory#createElement()
   */
  public Element createElement()
  {
    final Element element = new Element();
    element.setElementType(new LabelType());
    applyElementName(element);
    applyStyle(element.getStyle());

    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, getText());
    element.setAttribute(AttributeNames.Excel.NAMESPACE, AttributeNames.Excel.FIELD_FORMULA, getExcelFormula());
View Full Code Here

  public void testRichTextParsing()
  {
    HtmlRichTextConverter richTextConverter = new HtmlRichTextConverter();
    final Element element = new Element();
    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, RICHTEXT);
    element.setElementType(new LabelType());
    final Object o = richTextConverter.convert(element, RICHTEXT);
    System.out.println(o);
  }
View Full Code Here

   * @see org.pentaho.reporting.engine.classic.core.elementfactory.ElementFactory#createElement()
   */
  public Element createElement()
  {
    final Element element = new Element();
    element.setElementType(new LabelType());
    applyElementName(element);
    applyStyle(element.getStyle());

    element.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, getText());
    element.setAttribute(AttributeNames.Excel.NAMESPACE, AttributeNames.Excel.FIELD_FORMULA, getExcelFormula());
View Full Code Here

                                              final String fieldName)
  {
    if (aggregationType == null)
    {
      final Element footerValueElement = new Element();
      footerValueElement.setElementType(new LabelType());
      footerValueElement.setAttribute
          (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, "");
      footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
          AttributeNames.Wizard.ALLOW_METADATA_STYLING, Boolean.TRUE);
      footerValueElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
View Full Code Here

  public static Element generateHeaderElement(final String fieldName)
  {
    final Element headerElement = new Element();
    headerElement.getStyle().setStyleProperty(ElementStyleKeys.DYNAMIC_HEIGHT, Boolean.TRUE);
    headerElement.setElementType(new LabelType());
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE, AttributeNames.Wizard.LABEL_FOR, fieldName);
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
        AttributeNames.Wizard.ALLOW_METADATA_STYLING, Boolean.TRUE);
    headerElement.setAttribute(AttributeNames.Wizard.NAMESPACE,
        AttributeNames.Wizard.ALLOW_METADATA_ATTRIBUTES, Boolean.TRUE);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.filter.types.LabelType

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.