public class CheckBoxFieldBuilder extends AbstractFormFieldBuilder
Copyright (c) 2020-2024 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
| 限定符和类型 | 字段和说明 |
|---|---|
protected Boolean |
isSelected
是否选中
|
protected FormFieldStateStyle |
style
状态样式
|
protected String |
value
选项值
|
alignment, document, isNoExport, isReadonly, isRequired, name, page, size| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.pdfbox.pdmodel.interactive.form.PDField |
build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
构建
|
static CheckBoxFieldBuilder |
builder(Document document,
Page page,
Size size)
构建器
|
protected void |
initAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
初始化外观
|
protected void |
initBorder(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
初始化边框
|
protected void |
initProperties(org.apache.pdfbox.pdmodel.interactive.form.PDCheckBox field)
初始化属性
|
protected void |
initWidget(org.apache.pdfbox.pdmodel.interactive.form.PDCheckBox field)
初始化部件
|
initProperties, initSizeprotected FormFieldStateStyle style
protected String value
protected Boolean isSelected
public static CheckBoxFieldBuilder builder(Document document, Page page, Size size)
document - 文档page - 页面public org.apache.pdfbox.pdmodel.interactive.form.PDField build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
build 在类中 AbstractFormFieldBuilderform - 表单protected void initProperties(org.apache.pdfbox.pdmodel.interactive.form.PDCheckBox field)
field - 字段protected void initWidget(org.apache.pdfbox.pdmodel.interactive.form.PDCheckBox field)
field - 字段protected void initAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
widget - 字段protected void initBorder(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
widget - 部件Copyright © 2024. All rights reserved.