Класс HTMLDocument.HTMLReader.FormAction
java.lang.Object
javax.swing.text.html.HTMLDocument.HTMLReader.TagAction
javax.swing.text.html.HTMLDocument.HTMLReader.SpecialAction
javax.swing.text.html.HTMLDocument.HTMLReader.FormAction
- Включающий класс:
HTMLDocument.HTMLReader
public class HTMLDocument.HTMLReader.FormAction extends HTMLDocument.HTMLReader.SpecialAction
Действие для поддержки форм путём построения всех элементов, используемых для представления элементов управления формой. Это обработает теги <INPUT>, <TEXTAREA>, <SELECT> и <OPTION>. Ожидается, что элемент, созданный этим действием, будет иметь атрибут
StyleConstants.ModelAttribute, установленный в модель, которая хранит состояние элемента управления формой. Это позволяет использовать несколько представлений и позволяет итерировать документ, собирая данные формы. Ниже приведены назначения моделей для различных типов элементов формы. | Тип элемента | Тип модели |
|---|---|
| input, тип button |
DefaultButtonModel |
| input, тип checkbox |
JToggleButton.ToggleButtonModel |
| input, тип image |
DefaultButtonModel |
| input, тип password |
PlainDocument |
| input, тип radio |
JToggleButton.ToggleButtonModel |
| input, тип reset |
DefaultButtonModel |
| input, тип submit |
DefaultButtonModel |
| input, тип text или тип null. |
PlainDocument |
| select |
DefaultComboBoxModel или DefaultListModel с типом элемента Option |
| textarea |
PlainDocument |
Краткое описание конструкторов
| Конструктор | Описание |
|---|---|
FormAction() |
Создаёт FormAction. |
Краткое описание методов
Методы, объявленные в классе javax.swing.text.html.HTMLDocument.HTMLReader.TagAction
end, start
Подробное описание конструкторов
FormAction
public FormAction()
Создаёт
FormAction.
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://download.java.net/java/early_access/jdk24/docs/api/java.desktop/javax/swing/text/html/HTMLDocument.HTMLReader.FormAction.html