Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.swing.text

Interface AbstractDocument.Content

  • All Known Implementing Classes:
    GapContent, StringContent
    Enclosing class:
    AbstractDocument

    public static interface AbstractDocument.Content
    Interface to describe a sequence of character content that can be edited. Implementations may or may not support a history mechanism which will be reflected by whether or not mutations return an UndoableEdit implementation.
    See Also:
    AbstractDocument
    • Method Detail

      • createPosition

        Position createPosition(int offset)
                                throws BadLocationException
        Creates a position within the content that will track change as the content is mutated.
        Parameters:
        offset - the offset in the content >= 0
        Returns:
        a Position
        Throws:
        BadLocationException - for an invalid offset
      • length

        int length()
        Current length of the sequence of character content.
        Returns:
        the length >= 0
      • insertString

        UndoableEdit insertString(int where,
                                String str)
                                  throws BadLocationException
        Inserts a string of characters into the sequence.
        Parameters:
        where - offset into the sequence to make the insertion >= 0
        str - string to insert
        Returns:
        if the implementation supports a history mechanism, a reference to an Edit implementation will be returned, otherwise returns null
        Throws:
        BadLocationException - thrown if the area covered by the arguments is not contained in the character sequence
      • remove

        UndoableEdit remove(int where,
                          int nitems)
                            throws BadLocationException
        Removes some portion of the sequence.
        Parameters:
        where - The offset into the sequence to make the insertion >= 0.
        nitems - The number of items in the sequence to remove >= 0.
        Returns:
        If the implementation supports a history mechansim, a reference to an Edit implementation will be returned, otherwise null.
        Throws:
        BadLocationException - Thrown if the area covered by the arguments is not contained in the character sequence.
      • getString

        String getString(int where,
                       int len)
                         throws BadLocationException
        Fetches a string of characters contained in the sequence.
        Parameters:
        where - Offset into the sequence to fetch >= 0.
        len - number of characters to copy >= 0.
        Returns:
        the string
        Throws:
        BadLocationException - Thrown if the area covered by the arguments is not contained in the character sequence.
      • getChars

        void getChars(int where,
                    int len,
                    Segment txt)
                      throws BadLocationException
        Gets a sequence of characters and copies them into a Segment.
        Parameters:
        where - the starting offset >= 0
        len - the number of characters >= 0
        txt - the target location to copy into
        Throws:
        BadLocationException - Thrown if the area covered by the arguments is not contained in the character sequence.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/text/abstractdocument.content.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut