Examples of LabelType


Examples of org.libreplan.business.labels.entities.LabelType

    private List<FilterPair> fillWithFirstTenFiltersLabels() {
        Map<LabelType, List<Label>> mapLabels = databaseSnapshots
                .snapshotLabelsMap();
        Iterator<LabelType> iteratorLabelType = mapLabels.keySet().iterator();
        while (iteratorLabelType.hasNext() && getListMatching().size() < 10) {
            LabelType type = iteratorLabelType.next();
            for (int i = 0; getListMatching().size() < 10
                    && i < mapLabels.get(type).size(); i++) {
                Label label = mapLabels.get(type).get(i);
                addLabel(type, label);
            }
View Full Code Here

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

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

      {
        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

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

    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

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

                                              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

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

  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

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

   * @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

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

  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

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

   * @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

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

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