- java.lang.Object
-
- javax.swing.text.html.HTMLDocument.HTMLReader.TagAction
-
- javax.swing.text.html.HTMLDocument.HTMLReader.SpecialAction
-
- javax.swing.text.html.HTMLDocument.HTMLReader.FormAction
-
- Enclosing class:
- HTMLDocument.HTMLReader
public class HTMLDocument.HTMLReader.FormAction extends HTMLDocument.HTMLReader.SpecialAction
通过构建用于表示表单控件的所有元素来支持表单的操作。 这将处理<INPUT>,<TEXTAREA>,<SELECT>和<OPTION>标记。 此操作创建的元素应该将属性StyleConstants.ModelAttribute设置为保存表单控件状态的模型。 这样可以启用多个视图,并允许在拾取表单数据时迭代文档。 以下是各种类型的表单元素的模型分配。 Model assignments for the various types of form elements Element Type Model Type input, type buttonDefaultButtonModelinput, type checkboxJToggleButton.ToggleButtonModelinput, type imageDefaultButtonModelinput, type passwordPlainDocumentinput, type radioJToggleButton.ToggleButtonModelinput, type resetDefaultButtonModelinput, type submitDefaultButtonModelinput, type text or type is null.PlainDocumentselectDefaultComboBoxModelor anDefaultListModel, with an item type of Option textareaPlainDocument