Interface SignatureField
- All Superinterfaces:
FormField
Signature Form Field
签名表单字段
Features | 主要功能:
- Signature status check - 签名状态检查
- Signer name, date, reason, and location access - 签名者名称、日期、原因和位置访问
Usage Examples | 使用示例:
SignatureField sig = (SignatureField) form.getField("signature1");
if (sig.isSigned()) {
String signer = sig.getSignerName();
String date = sig.getSignDate();
}
Security | 安全性:
- Thread-safe: Depends on implementation - 线程安全: 取决于实现
- Null-safe: Depends on implementation — getters may return null if not signed - 空值安全: 取决于实现 — 未签名时获取方法可能返回空
- Since:
- JDK 25, opencode-base-pdf V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface FormField
FormField.FieldType -
Method Summary
Modifier and TypeMethodDescriptionGets signing location 获取签名位置Gets signing reason 获取签名原因Gets sign date as string 获取签名日期字符串Gets signer name 获取签名者名称default FormField.FieldTypegetType()Gets field type 获取字段类型booleanisSigned()Checks if signed 检查是否已签名Methods inherited from interface FormField
getName, getRectangle, getTooltip, getValue, isReadOnly, isRequired, setValue
-
Method Details
-
getType
Description copied from interface:FormFieldGets field type 获取字段类型 -
isSigned
boolean isSigned()Checks if signed 检查是否已签名- Returns:
- true if signed | 如果已签名返回 true
-
getSignerName
String getSignerName()Gets signer name 获取签名者名称- Returns:
- signer name, or null if not signed | 签名者名称,如果未签名则返回 null
-
getSignDate
String getSignDate()Gets sign date as string 获取签名日期字符串- Returns:
- sign date, or null if not signed | 签名日期,如果未签名则返回 null
-
getReason
-
getLocation
-