Module java.desktop
Package javax.swing

Class JEditorPane.JEditorPaneAccessibleHypertextSupport

    • Constructor Detail

      • JEditorPaneAccessibleHypertextSupport

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

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部