Package Summary  Overview Summary

class:JEditorPane.JEditorPaneAccessibleHypertextSupport [NONE]

constructor:JEditorPaneAccessibleHypertextSupport() [NONE]

  • JEditorPaneAccessibleHypertextSupport

    public JEditorPaneAccessibleHypertextSupport()
    Make one of these puppies

method:getLinkCount() [NONE]

  • getLinkCount

    public int getLinkCount()
    Returns the number of links within this hypertext doc.
    Specified by:
    getLinkCount in interface AccessibleHypertext
    Returns:
    number of links in this hypertext doc.

method:getLinkIndex(int) [NONE]

  • getLinkIndex

    public int getLinkIndex(int charIndex)
    Returns the index into an array of hyperlinks that is associated with this character index, or -1 if there is no hyperlink associated with this index.
    Specified by:
    getLinkIndex in interface AccessibleHypertext
    Parameters:
    charIndex - index within the text
    Returns:
    index into the set of hyperlinks for this hypertext doc.

method:getLink(int) [NONE]

  • getLink

    public AccessibleHyperlink getLink(int linkIndex)
    Returns the index into an array of hyperlinks that index. If there is no hyperlink at this index, it returns null.
    Specified by:
    getLink in interface AccessibleHypertext
    Parameters:
    linkIndex - into the set of hyperlinks for this hypertext doc.
    Returns:
    string representation of the hyperlink

method:getLinkText(int) [NONE]

  • getLinkText

    public String getLinkText(int linkIndex)
    Returns the contiguous text within the document that is associated with this hyperlink.
    Parameters:
    linkIndex - into the set of hyperlinks for this hypertext doc.
    Returns:
    the contiguous text sharing the link at this index

© 2017 Oracle Corporation and/or its affiliates