public class RadioFieldBuilder 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.
Modifier and Type | Field and Description |
---|---|
protected List<RadioField> |
fields
字段列表
|
alignment, document, isNoExport, isReadonly, isRequired, name, page, size
Modifier and Type | Method and Description |
---|---|
void |
addFields(RadioField... fields)
添加字段
|
org.apache.pdfbox.pdmodel.interactive.form.PDField |
build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
构建
|
static RadioFieldBuilder |
builder(Document document,
Page page)
构建器
|
protected void |
initAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget,
FormFieldStateStyle style)
初始化外观
|
protected void |
initBorder(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
初始化边框
|
protected void |
initSize(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget,
Size size)
初始化尺寸
|
protected void |
initWidget(org.apache.pdfbox.pdmodel.interactive.form.PDRadioButton field)
初始化部件
|
initProperties, initSize
protected List<RadioField> fields
public static RadioFieldBuilder builder(Document document, Page page)
document
- 文档page
- 页面public void addFields(RadioField... fields)
fields
- 字段public org.apache.pdfbox.pdmodel.interactive.form.PDField build(org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm form)
build
in class AbstractFormFieldBuilder
form
- 表单protected void initWidget(org.apache.pdfbox.pdmodel.interactive.form.PDRadioButton field)
field
- 字段protected void initAppearance(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget, FormFieldStateStyle style)
widget
- 字段style
- 状态样式protected void initSize(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget, Size size)
widget
- 部件size
- 尺寸protected void initBorder(org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget widget)
widget
- 部件Copyright © 2024. All rights reserved.