Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
javax.swing.text.html

Class FormView

  • All Implemented Interfaces:
    ActionListener, EventListener, SwingConstants

    public class FormView
    extends ComponentView
    implements ActionListener
    Component decorator that implements the view interface for form elements, <input>, <textarea>, and <select>. The model for the component is stored as an attribute of the the element (using StyleConstants.ModelAttribute), and is used to build the component of the view. The type of the model is assumed to of the type that would be set by 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

    Erste Seite von API Java Inhaltsverzeichnis Haut

    • Field Detail

      • SUBMIT

        @Deprecated
        public static final String SUBMIT
        Deprecated. As of 1.3, value now comes from UIManager property FormView.submitButtonText
        If a value attribute is not specified for a FORM input element of type "submit", then this default string is used.
      • RESET

        @Deprecated
        public static final String RESET
        Deprecated. As of 1.3, value comes from UIManager UIManager property FormView.resetButtonText
        If a value attribute is not specified for a FORM input element of type "reset", then this default string is used.
    • Constructor Detail

      • FormView

        public FormView(Element elem)
        Creates a new FormView object.
        Parameters:
        elem - the element to decorate
    • Method Detail

      • createComponent

        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.
        Overrides:
        createComponent in class ComponentView
      • getMaximumSpan

        public float getMaximumSpan(int axis)
        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.
        Overrides:
        getMaximumSpan in class ComponentView
        Parameters:
        axis - may be either View.X_AXIS or View.Y_AXIS
        Returns:
        the span the view would like to be rendered into >= 0. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view.
        Throws:
        IllegalArgumentException - for an invalid axis
        See Also:
        View.getPreferredSpan(int)
      • actionPerformed

        public void actionPerformed(ActionEvent evt)
        Responsible for processing 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.
        Specified by:
        actionPerformed in interface ActionListener
        Parameters:
        evt - the ActionEvent.
      • submitData

        protected void submitData(String data)
        This method is responsible for submitting the form data. A thread is forked to undertake the submission.
      • imageSubmit

        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".
        Parameters:
        imageData - the mouse click coordinates.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/swing/text/html/FormView.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut