javax.swing

Class JEditorPane. JEditorPaneAccessibleHypertextSupport

    • Constructor Detail

      • JEditorPane.JEditorPaneAccessibleHypertextSupport

        public JEditorPane.JEditorPaneAccessibleHypertextSupport()
        Make one of these puppies
    • Method Detail

      • 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.
      • 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.
      • 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
      • 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

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/swing/JEditorPane.JEditorPaneAccessibleHypertextSupport.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut