| public class javax.swing.text.html FormView
|
Java SE 6 |
HTMLDocument.HTMLReader.FormAction. If there are
multiple views mapped over the document, they will share the
embedded component models.
The following table shows what components get built by this view.
| Element Type | Component built |
|---|---|
| input, type button | JButton |
| input, type checkbox | JCheckBox |
| input, type image | JButton |
| input, type password | JPasswordField |
| input, type radio | JRadioButton |
| input, type reset | JButton |
| input, type submit | JButton |
| input, type text | JTextField |
| select, size > 1 or multiple attribute defined | JList in a JScrollPane |
| select, size unspecified or 1 | JComboBox |
| textarea | JTextArea in a JScrollPane |
| input, type file | JTextField |
| version | 1.29 07/25/06 |
| Fields | |||
|---|---|---|---|
| final public static String | SUBMIT Details
If a value attribute is not specified for a FORM input element
of type "submit", then this default string is used.
| ||
| final public static String | RESET Details
If a value attribute is not specified for a FORM input element
of type "reset", then this default string is used.
| ||
| Constructors | |||
|---|---|---|---|
| public | FormView(Element elem) Details
Creates a new FormView object.
| ||
| Methods | |||
|---|---|---|---|
| public void | actionPerformed(ActionEvent evt) Details
Responsible for processeing the ActionEvent.
If the element associated with the FormView,
has a type of "submit", "reset", "text" or "password"
then the action is processed. In the case of a "submit"
the form is submitted. In the case of a "reset"
the form is reset to its original state.
In the case of "text" or "password", if the
element is the last one of type "text" or "password",
the form is submitted. Otherwise, focus is transferred
to the next component in the form.
| ||
| protected Component | createComponent() Create the component. This is basically a big switch statement based upon the tag type and html attributes of the associated element. | ||
| protected void | imageSubmit(String imageData) Details
This method is called to submit a form in response
to a click on an image -- an <INPUT> form
element of type "image".
| ||
| protected void | submitData(String data) This method is responsible for submitting the form data. A thread is forked to undertake the submission. | ||
| Properties | |||||||
|---|---|---|---|---|---|---|---|
| public float | getMaximumSpan(int axis) Details
Determines the maximum span for this view along an
axis. For certain components, the maximum and preferred span are the
same. For others this will return the value
returned by Component.getMaximumSize along the
axis of interest.
| ||||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|