All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.pdf.generator.domain.PdfI18nDividerField Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.pdf.generator.domain;

import com.netgrif.application.engine.pdf.generator.config.PdfResource;
import com.netgrif.application.engine.petrinet.domain.DataGroup;
import com.netgrif.application.engine.petrinet.domain.dataset.FieldType;

import java.util.ArrayList;
import java.util.List;

public class PdfI18nDividerField extends PdfField {

    public PdfI18nDividerField(String id, DataGroup dataGroup, FieldType type, String label, String value, PdfResource resource) {
        super(resource);
        this.fieldId = id;
        this.dataGroup = dataGroup;
        this.type = type;
        this.label = label;
        this.values = new ArrayList<>();
        this.values.add(value);
    }

    public PdfI18nDividerField(String fieldId, DataGroup dataGroup, String label, FieldType type,
                               int x, int bottomY, int width, int height, PdfResource resource) {
        super(resource);
        this.fieldId = fieldId;
        this.dataGroup = dataGroup;
        this.label = label;
        this.values = new ArrayList<>();
        this.type = type;
        this.x = x;
        this.originalTopY = bottomY - height;
        this.topY = bottomY - height;
        this.originalBottomY = bottomY;
        this.bottomY = bottomY;
        this.width = width;
        this.height = height;
    }

    public PdfI18nDividerField(String fieldId, String label, List values, FieldType type,
                               int x, int bottomY, int width, int height, PdfResource resource) {
        super(resource);
        this.fieldId = fieldId;
        this.label = label;
        this.values = values;
        this.type = type;
        this.x = x;
        this.bottomY = bottomY;
        this.width = width;
        this.height = height;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy