Class PdfField
- java.lang.Object
-
- com.netgrif.application.engine.pdf.generator.domain.PdfField
-
- All Implemented Interfaces:
java.lang.Comparable<PdfField>
- Direct Known Subclasses:
PdfDataGroupField,PdfI18nDividerField,PdfSelectionField,PdfTextField,PdfTitleField
public abstract class PdfField extends java.lang.Object implements java.lang.Comparable<PdfField>
Class that holds information about fields that will be exported to PDF
-
-
Field Summary
Fields Modifier and Type Field Description protected intbottomYprotected booleanchangedPositionprotected booleanchangedSizeprotected DataGroupdataGroupprotected booleandgFieldprotected java.lang.StringfieldIdprotected intheightprotected java.lang.Stringlabelprotected intlayoutXprotected intlayoutYprotected java.lang.IntegeroriginalBottomYprotected intoriginalTopYprotected Rendererrendererprotected PdfResourceresourceprotected inttopYprotected FieldTypetypeprotected java.util.List<java.lang.String>valuesprotected intwidthprotected intx
-
Constructor Summary
Constructors Constructor Description PdfField()PdfField(PdfResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanchangeHeight(int multiLineHeight)intcompareTo(PdfField pdfField)voidcountMultiLineHeight(int fontSize, PdfResource resource)booleanequals(java.lang.Object o)protected intgetMaxLabelLineSize(int fieldWidth, int fontSize, int padding)protected intgetMaxValueLineSize(int fieldWidth, int fontSize, int padding)inthashCode()
-
-
-
Field Detail
-
fieldId
protected java.lang.String fieldId
-
dataGroup
protected DataGroup dataGroup
-
type
protected FieldType type
-
label
protected java.lang.String label
-
values
protected java.util.List<java.lang.String> values
-
layoutX
protected int layoutX
-
layoutY
protected int layoutY
-
x
protected int x
-
originalTopY
protected int originalTopY
-
topY
protected int topY
-
originalBottomY
protected java.lang.Integer originalBottomY
-
bottomY
protected int bottomY
-
width
protected int width
-
height
protected int height
-
changedSize
protected boolean changedSize
-
changedPosition
protected boolean changedPosition
-
dgField
protected boolean dgField
-
resource
protected PdfResource resource
-
renderer
protected Renderer renderer
-
-
Constructor Detail
-
PdfField
public PdfField()
-
PdfField
public PdfField(PdfResource resource)
-
-
Method Detail
-
countMultiLineHeight
public void countMultiLineHeight(int fontSize, PdfResource resource)
-
changeHeight
protected boolean changeHeight(int multiLineHeight)
-
compareTo
public int compareTo(PdfField pdfField)
- Specified by:
compareToin interfacejava.lang.Comparable<PdfField>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getMaxLabelLineSize
protected int getMaxLabelLineSize(int fieldWidth, int fontSize, int padding)
-
getMaxValueLineSize
protected int getMaxValueLineSize(int fieldWidth, int fontSize, int padding)
-
-