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
public void end(HTML.Tag t)
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.