Interface ComboBox

All Superinterfaces:
FormField

public non-sealed interface ComboBox extends FormField
Combo Box (Dropdown) Form Field 下拉框表单字段

Features | 主要功能:

  • Dropdown option list access - 下拉选项列表访问
  • Editable (custom input) support - 可编辑(自定义输入)支持

Usage Examples | 使用示例:

ComboBox combo = (ComboBox) form.getField("country");
List<String> options = combo.getOptions();
combo.setValue("USA");

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:
  • Method Details

    • getType

      default FormField.FieldType getType()
      Description copied from interface: FormField
      Gets field type 获取字段类型
      Specified by:
      getType in interface FormField
      Returns:
      field type | 字段类型
    • getOptions

      List<String> getOptions()
      Gets available options 获取可用选项
      Returns:
      list of options | 选项列表
    • isEditable

      boolean isEditable()
      Checks if editable (allows custom input) 检查是否可编辑(允许自定义输入)
      Returns:
      true if editable | 如果可编辑返回 true