Interface RadioButton
- All Superinterfaces:
FormField
Radio Button Form Field
单选按钮表单字段
Features | 主要功能:
- Option list access - 选项列表访问
- Single selection management - 单选管理
Usage Examples | 使用示例:
RadioButton radio = (RadioButton) form.getField("gender");
List<String> options = radio.getOptions();
radio.setSelectedOption("Male");
Security | 安全性:
- Thread-safe: Depends on implementation - 线程安全: 取决于实现
- Null-safe: Depends on implementation - 空值安全: 取决于实现
- 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 available options 获取可用选项Gets selected option 获取选中的选项default FormField.FieldTypegetType()Gets field type 获取字段类型voidsetSelectedOption(String option) Sets selected option 设置选中的选项Methods inherited from interface FormField
getName, getRectangle, getTooltip, getValue, isReadOnly, isRequired, setValue