Package Summary  Overview Summary

class:AccessibleEditableText [NONE]

method:setTextContents(java.lang.String) [NONE]

  • setTextContents

    void setTextContents​(String s)
    Sets the text contents to the specified string.
    Parameters:
    s - the string to set the text contents

method:insertTextAtIndex(int,java.lang.String) [NONE]

  • insertTextAtIndex

    void insertTextAtIndex​(int index,
                           String s)
    Inserts the specified string at the given index.
    Parameters:
    index - the index in the text where the string will be inserted
    s - the string to insert in the text

method:getTextRange(int,int) [NONE]

  • getTextRange

    String getTextRange​(int startIndex,
                        int endIndex)
    Returns the text string between two indices.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text
    Returns:
    the text string between the indices

method:delete(int,int) [NONE]

  • delete

    void delete​(int startIndex,
                int endIndex)
    Deletes the text between two indices.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text

method:cut(int,int) [NONE]

  • cut

    void cut​(int startIndex,
             int endIndex)
    Cuts the text between two indices into the system clipboard.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text

method:paste(int) [NONE]

  • paste

    void paste​(int startIndex)
    Pastes the text from the system clipboard into the text starting at the specified index.
    Parameters:
    startIndex - the starting index in the text

method:replaceText(int,int,java.lang.String) [NONE]

  • replaceText

    void replaceText​(int startIndex,
                     int endIndex,
                     String s)
    Replaces the text between two indices with the specified string.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text
    s - the string to replace the text between two indices

method:selectText(int,int) [NONE]

  • selectText

    void selectText​(int startIndex,
                    int endIndex)
    Selects the text between two indices.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text

method:setAttributes(int,int,javax.swing.text.AttributeSet) [NONE]

  • setAttributes

    void setAttributes​(int startIndex,
                       int endIndex,
                       AttributeSet as)
    Sets attributes for the text between two indices.
    Parameters:
    startIndex - the starting index in the text
    endIndex - the ending index in the text
    as - the attribute set
    See Also:
    AttributeSet

© 2019 Oracle Corporation and/or its affiliates