|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
javax.swing.text.html
|
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 |
Nested Class Summary | |
protected class |
FormView.MouseEventListener
MouseEventListener class to handle form submissions when an input with type equal to image is clicked on. |
Field Summary | |
static String |
RESET
Deprecated. As of 1.3, value comes from UIManager UIManager property FormView.resetButtonText |
static String |
SUBMIT
Deprecated. As of 1.3, value now comes from UIManager property FormView.submitButtonText |
Fields inherited from class javax.swing.text.View |
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
FormView(Element elem)
Creates a new FormView object. |
Method Summary | |
void |
actionPerformed(ActionEvent evt)
Responsible for processeing the ActionEvent. |
protected Component |
createComponent()
Create the component. |
float |
getMaximumSpan(int axis)
Determines the maximum span for this view along an axis. |
protected void |
imageSubmit(String imageData)
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. |
Methods inherited from class javax.swing.text.ComponentView |
getAlignment, getComponent, getMinimumSpan, getPreferredSpan, modelToView, paint, setParent, viewToModel |
Methods inherited from class javax.swing.text.View |
append, breakView, changedUpdate, createFragment, forwardUpdate, forwardUpdateToView, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getNextVisualPositionFrom, getParent, getResizeWeight, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, insertUpdate, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, removeUpdate, replace, setSize, updateChildren, updateLayout, viewToModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SUBMIT
public static final String RESET
Constructor Detail |
public FormView(Element elem)
elem
- the element to decorateMethod Detail |
protected Component createComponent()
createComponent
in class ComponentView
public float getMaximumSpan(int axis)
getMaximumSpan
in class ComponentView
axis
- may be either View.X_AXIS or View.Y_AXIS
IllegalArgumentException
- for an invalid axispublic void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- the ActionEvent.protected void submitData(String data)
protected void imageSubmit(String imageData)
imageData
- the mouse click coordinates.