javax.swing.text.html
public class FormView extends ComponentView implements ActionListener
Element type | Swing component |
---|---|
input, button | JButton |
input, checkbox | JButton |
input, image | JButton |
input, password | JButton |
input, radio | JButton |
input, reset | JButton |
input, submit | JButton |
input, text | JButton |
select, size > 1 or with multiple attribute | JList in JScrollPane |
select, size unspecified or == 1 | JComboBox |
textarea, text | JTextArea in JScrollPane |
input, file | JTextField |
Nested Class Summary | |
---|---|
protected class | FormView.MouseEventListener |
Field Summary | |
---|---|
static String | RESET
If the value attribute of an <input type="reset">>
tag is not specified, then this string is used.
|
static String | SUBMIT
If the value attribute of an <input type="submit">>
tag is not specified, then this string is used.
|
Constructor Summary | |
---|---|
FormView(Element el)
Creates a new FormView .
|
Method Summary | |
---|---|
void | actionPerformed(ActionEvent ev)
Processes an action from the Swing component.
|
protected Component | createComponent()
Creates the correct AWT component for rendering the form element. |
float | getMaximumSpan(int axis)
Determines the maximum span for this view on the specified axis.
|
protected void | imageSubmit(String imageData)
Submits the form data in response to a click on a
<input type="image"> element.
|
protected void | submitData(String data)
Submits the form data. |
Deprecated: As of JDK1.3 the value is fetched from the UIManager property
FormView.resetButtonText
.
<input type="reset">>
tag is not specified, then this string is used.
Deprecated: As of JDK1.3 the value is fetched from the UIManager property
FormView.submitButtonText
.
<input type="submit">>
tag is not specified, then this string is used.
FormView
.
Parameters: el the element that is displayed by this view.
Parameters: ev the action event
Parameters: axis the axis along which to determine the span
Returns: the maximum span for this view on the specified axis
Throws: IllegalArgumentException if the axis is invalid
<input type="image">
element.
Parameters: imageData the mouse click coordinates
Parameters: data the form data