public class HTMLDocument.HTMLReader.FormAction extends HTMLDocument.HTMLReader.SpecialAction
StyleConstants.ModelAttribute形式控制保持状态模型。这可以实现多个视图,并允许将文档迭代到提取窗体的数据中。以下是各种类型的表单元素的模型分配。
| Element Type | Model Type |
|---|---|
| input, type button | DefaultButtonModel |
| input, type checkbox | JToggleButton.ToggleButtonModel |
| input, type image | DefaultButtonModel |
| input, type password | PlainDocument |
| input, type radio | JToggleButton.ToggleButtonModel |
| input, type reset | DefaultButtonModel |
| input, type submit | DefaultButtonModel |
| input, type text or type is null. | PlainDocument |
| select | DefaultComboBoxModel or an DefaultListModel, with an item type of Option |
| textarea | PlainDocument |
| Constructor and Description |
|---|
FormAction() |
public void start(HTML.Tag t, MutableAttributeSet attr)
HTMLDocument.HTMLReader.TagAction
start 方法重写,继承类
HTMLDocument.HTMLReader.SpecialAction
public void end(HTML.Tag t)
HTMLDocument.HTMLReader.TagAction
end 方法重写,继承类
HTMLDocument.HTMLReader.TagAction
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.