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

Interface Element

    • Method Detail

      • getDocument

        Document getDocument()
        Fetches the document associated with this element.
        Returns:
        the document
      • getParentElement

        Element getParentElement()
        Fetches the parent element. If the element is a root level element returns null.
        Returns:
        the parent element
      • getName

        String getName()
        Fetches the name of the element. If the element is used to represent some type of structure, this would be the type name.
        Returns:
        the element name
      • getAttributes

        AttributeSet getAttributes()
        Fetches the collection of attributes this element contains.
        Returns:
        the attributes for the element
      • getStartOffset

        int getStartOffset()
        Fetches the offset from the beginning of the document that this element begins at. If this element has children, this will be the offset of the first child. As a document position, there is an implied forward bias.
        Returns:
        the starting offset >= 0 and < getEndOffset();
        See Also:
        Document, AbstractDocument
      • getEndOffset

        int getEndOffset()
        Fetches the offset from the beginning of the document that this element ends at. If this element has children, this will be the end offset of the last child. As a document position, there is an implied backward bias.

        All the default Document implementations descend from AbstractDocument. AbstractDocument models an implied break at the end of the document. As a result of this, it is possible for this to return a value greater than the length of the document.

        Returns:
        the ending offset > getStartOffset() and <= getDocument().getLength() + 1
        See Also:
        Document, AbstractDocument
      • getElementIndex

        int getElementIndex(int offset)
        Gets the child element index closest to the given offset. The offset is specified relative to the beginning of the document. Returns -1 if the Element is a leaf, otherwise returns the index of the Element that best represents the given location. Returns 0 if the location is less than the start offset. Returns getElementCount() - 1 if the location is greater than or equal to the end offset.
        Parameters:
        offset - the specified offset >= 0
        Returns:
        the element index >= 0
      • getElementCount

        int getElementCount()
        Gets the number of child elements contained by this element. If this element is a leaf, a count of zero is returned.
        Returns:
        the number of child elements >= 0
      • getElement

        Element getElement(int index)
        Fetches the child element at the given index.
        Parameters:
        index - the specified index >= 0
        Returns:
        the child element
      • isLeaf

        boolean isLeaf()
        Is this element a leaf element? An element that may have children, even if it currently has no children, would return false.
        Returns:
        true if a leaf element else false

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/element.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