This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.swing.text.html
class HTMLDocument.HTMLReader.FormAction
- Enclosing class:
- HTMLDocument.HTMLReader
public class HTMLDocument.HTMLReader.FormAction
extends HTMLDocument.HTMLReader.SpecialAction
Action to support forms by building all of the elements
used to represent form controls. This will process
the <INPUT>, <TEXTAREA>, <SELECT>,
and <OPTION> tags. The element created by
this action is expected to have the attribute
StyleConstants.ModelAttribute
set to
the model that holds the state for the form control.
This enables multiple views, and allows document to
be iterated over picking up the data of the form.
The following are the model assignments for the
various type of form elements.
Element Type
| Model Type
|
input, type button
| {@link DefaultButtonModel}
|
input, type checkbox
| {@link javax.swing.JToggleButton.ToggleButtonModel}
|
input, type image
| {@link DefaultButtonModel}
|
input, type password
| {@link PlainDocument}
|
input, type radio
| {@link javax.swing.JToggleButton.ToggleButtonModel}
|
input, type reset
| {@link DefaultButtonModel}
|
input, type submit
| {@link DefaultButtonModel}
|
input, type text or type is null.
| {@link PlainDocument}
|
select
| {@link DefaultComboBoxModel} or an {@link DefaultListModel}, with an item type of Option
|
textarea
| {@link PlainDocument}
|
Method Summary |
void |
Called when an end tag is seen for the
type of tag this action was registered
to.
|
void |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLDocument.HTMLReader.FormAction
public HTMLDocument.HTMLReader.FormAction()
-
end
public void end(HTML.Tag t)
-
- Overrides:
end
in class HTMLDocument.HTMLReader.TagAction
- Parameters:
t
start
public void start(HTML.Tag t,
MutableAttributeSet attr)
-
- Overrides:
start
in class HTMLDocument.HTMLReader.SpecialAction
- Parameters:
t
attr
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.