public class Field extends Object implements Serializable
Field class allows to place additional data into the document at the time of signing.
It is important to know that they are linked to a signature.
Once that signature has been signed, the value in the field is locked in and can not be further changed.
Only the signer to whom the signature is assigned will be able to place values in the field.
| Constructor and Description |
|---|
Field() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBinding() |
FieldValidator |
getFieldValidator()
Gets the field validator if any.
|
Integer |
getFontSize() |
double |
getHeight() |
FieldId |
getId() |
String |
getName()
Gets the name of the field
|
int |
getPage() |
FieldStyle |
getStyle() |
TextAnchor |
getTextAnchor() |
String |
getValue()
Gets the value entered into the field
|
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
isExtraction() |
void |
setExtraction(boolean extraction) |
void |
setFieldValidator(FieldValidator fieldValidator)
Sets a field validator.
|
void |
setFontSize(Integer fontSize) |
void |
setHeight(double height) |
void |
setId(FieldId id) |
void |
setName(String name)
Sets the name of the field
|
void |
setPage(int page) |
void |
setStyle(FieldStyle style) |
void |
setTextAnchor(TextAnchor textAnchor) |
void |
setValue(String value)
Sets the value of the field
|
void |
setWidth(double width) |
void |
setX(double x) |
void |
setY(double y) |
public double getX()
public void setX(double x)
public double getWidth()
public void setWidth(double width)
public double getY()
public void setY(double y)
public double getHeight()
public void setHeight(double height)
public int getPage()
public void setPage(int page)
public FieldStyle getStyle()
public void setStyle(FieldStyle style)
public String getValue()
public void setValue(String value)
value - public void setName(String name)
name - public String getName()
public void setExtraction(boolean extraction)
public boolean isExtraction()
public String getBinding()
public void setFieldValidator(FieldValidator fieldValidator)
fieldValidator - public FieldValidator getFieldValidator()
public void setId(FieldId id)
public FieldId getId()
public TextAnchor getTextAnchor()
public void setTextAnchor(TextAnchor textAnchor)
public Integer getFontSize()
public void setFontSize(Integer fontSize)
Copyright 2022 OneSpan All rights reserved.