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 int
bottomY
protected boolean
changedPosition
protected boolean
changedSize
protected DataGroup
dataGroup
protected boolean
dgField
protected java.lang.String
fieldId
protected int
height
protected java.lang.String
label
protected int
layoutX
protected int
layoutY
protected java.lang.Integer
originalBottomY
protected int
originalTopY
protected Renderer
renderer
protected PdfResource
resource
protected int
topY
protected FieldType
type
protected java.util.List<java.lang.String>
values
protected int
width
protected int
x
-
Constructor Summary
Constructors Constructor Description PdfField()
PdfField(PdfResource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
changeHeight(int multiLineHeight)
int
compareTo(PdfField pdfField)
void
countMultiLineHeight(int fontSize, PdfResource resource)
boolean
equals(java.lang.Object o)
protected int
getMaxLabelLineSize(int fieldWidth, int fontSize, int padding)
protected int
getMaxValueLineSize(int fieldWidth, int fontSize, int padding)
int
hashCode()
-
-
-
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:
compareTo
in interfacejava.lang.Comparable<PdfField>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getMaxLabelLineSize
protected int getMaxLabelLineSize(int fieldWidth, int fontSize, int padding)
-
getMaxValueLineSize
protected int getMaxValueLineSize(int fieldWidth, int fontSize, int padding)
-
-