javax.swing
protected class JEditorPane.JEditorPaneAccessibleHypertextSupport extends JEditorPane.AccessibleJEditorPane implements AccessibleHypertext
| Nested Class Summary | |
|---|---|
| class | JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink
The accessible representation of a HTML link.
|
| Constructor Summary | |
|---|---|
| JEditorPaneAccessibleHypertextSupport()
Creates a new JEditorPaneAccessibleHypertextSupport object. | |
| Method Summary | |
|---|---|
| AccessibleHyperlink | getLink(int i)
Returns the i-th hyperlink in the document or
null if there is no hyperlink with the specified index.
|
| int | getLinkCount()
Returns the number of hyperlinks in the document.
|
| int | getLinkIndex(int c)
Returns the index of the link element at the character position
c within the document, or -1 if there is no
link at the specified position.
|
| String | getLinkText(int i)
Returns the link text of the link at index i, or
null, if there is no link at the specified position.
|
i-th hyperlink in the document or
null if there is no hyperlink with the specified index.
Parameters: i the index of the hyperlink to return
Returns: the i-th hyperlink in the document or
null if there is no hyperlink with the specified
index
Returns: the number of hyperlinks in the document
c within the document, or -1 if there is no
link at the specified position.
Parameters: c the character index from which to fetch the link index
Returns: the index of the link element at the character position
c within the document, or -1 if there
is no link at the specified position
i, or
null, if there is no link at the specified position.
Parameters: i the index of the link
Returns: the link text of the link at index i, or
null, if there is no link at the specified
position