protected class

JEditorPane.JEditorPaneAccessibleHypertextSupport

extends JEditorPane.AccessibleJEditorPane
implements AccessibleHypertext
java.lang.Object
   ↳ javax.accessibility.AccessibleContext
     ↳ java.awt.Component.AccessibleAWTComponent
       ↳ java.awt.Container.AccessibleAWTContainer
         ↳ javax.swing.JComponent.AccessibleJComponent
           ↳ javax.swing.text.JTextComponent.AccessibleJTextComponent
             ↳ javax.swing.JEditorPane.AccessibleJEditorPane
               ↳ javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport

Class Overview

What's returned by AccessibleJEditorPaneHTML.getAccessibleText. Provides support for AccessibleHypertext in case there is an HTML document being displayed in this JEditorPane.

Summary

Nested Classes
class JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink  
[Expand]
Inherited Constants
From class javax.accessibility.AccessibleContext
From interface javax.accessibility.AccessibleExtendedText
From interface javax.accessibility.AccessibleText
[Expand]
Inherited Fields
From class javax.swing.JComponent.AccessibleJComponent
From class java.awt.Container.AccessibleAWTContainer
From class java.awt.Component.AccessibleAWTComponent
From class javax.accessibility.AccessibleContext
From interface javax.accessibility.AccessibleAction
Public Constructors
JEditorPane.JEditorPaneAccessibleHypertextSupport()
Make one of these puppies
Public Methods
AccessibleHyperlink getLink(int linkIndex)
Returns the index into an array of hyperlinks that index.
int getLinkCount()
Returns the number of links within this hypertext doc.
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.
String getLinkText(int linkIndex)
Returns the contiguous text within the document that is associated with this hyperlink.
[Expand]
Inherited Methods
From class javax.swing.JEditorPane.AccessibleJEditorPane
From class javax.swing.text.JTextComponent.AccessibleJTextComponent
From class javax.swing.JComponent.AccessibleJComponent
From class java.awt.Container.AccessibleAWTContainer
From class java.awt.Component.AccessibleAWTComponent
From class javax.accessibility.AccessibleContext
From class java.lang.Object
From interface javax.accessibility.AccessibleAction
From interface javax.accessibility.AccessibleComponent
From interface javax.accessibility.AccessibleEditableText
From interface javax.accessibility.AccessibleExtendedComponent
From interface javax.accessibility.AccessibleExtendedText
From interface javax.accessibility.AccessibleHypertext
From interface javax.accessibility.AccessibleText
From interface javax.swing.event.CaretListener
From interface javax.swing.event.DocumentListener

Public Constructors

public JEditorPane.JEditorPaneAccessibleHypertextSupport ()

Make one of these puppies

Public Methods

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.

Parameters
linkIndex into the set of hyperlinks for this hypertext doc.
Returns
  • string representation of the hyperlink

public int getLinkCount ()

Returns the number of links within this hypertext doc.

Returns
  • number of links in this hypertext doc.

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.

Parameters
charIndex index within the text
Returns
  • index into the set of hyperlinks for this hypertext doc.

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