protected class JEditorPane.JEditorPaneAccessibleHypertextSupport extends JEditorPane.AccessibleJEditorPane implements AccessibleHypertext
JEditorPane.AccessibleJEditorPaneHTML.getAccessibleText().| Modifier and Type | Class and Description |
|---|---|
class |
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink
The accessible representation of a HTML link.
|
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandlerComponent.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandleraccessibleContainerHandler, accessibleFocusHandleraccessibleAWTComponentHandler, accessibleAWTFocusHandlerACCESSIBLE_ACTION_PROPERTY, ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, ACCESSIBLE_CARET_PROPERTY, ACCESSIBLE_CHILD_PROPERTY, ACCESSIBLE_COMPONENT_BOUNDS_CHANGED, ACCESSIBLE_DESCRIPTION_PROPERTY, ACCESSIBLE_HYPERTEXT_OFFSET, ACCESSIBLE_INVALIDATE_CHILDREN, ACCESSIBLE_NAME_PROPERTY, ACCESSIBLE_SELECTION_PROPERTY, ACCESSIBLE_STATE_PROPERTY, ACCESSIBLE_TABLE_CAPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_COLUMN_HEADER_CHANGED, ACCESSIBLE_TABLE_MODEL_CHANGED, ACCESSIBLE_TABLE_ROW_DESCRIPTION_CHANGED, ACCESSIBLE_TABLE_ROW_HEADER_CHANGED, ACCESSIBLE_TABLE_SUMMARY_CHANGED, ACCESSIBLE_TEXT_ATTRIBUTES_CHANGED, ACCESSIBLE_TEXT_PROPERTY, ACCESSIBLE_VALUE_PROPERTY, ACCESSIBLE_VISIBLE_DATA_PROPERTY, accessibleDescription, accessibleName, accessibleParentCHARACTER, SENTENCE, WORDCLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP| Constructor and Description |
|---|
JEditorPane.JEditorPaneAccessibleHypertextSupport()
Creates a new JEditorPaneAccessibleHypertextSupport object.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getAccessibleDescription, getAccessibleStateSetcaretUpdate, changedUpdate, cut, delete, doAccessibleAction, getAccessibleActionCount, getAccessibleActionDescription, getAccessibleEditableText, getAccessibleRole, getAccessibleText, getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart, getTextRange, insertTextAtIndex, insertUpdate, paste, removeUpdate, replaceText, selectText, setAttributes, setTextContentsaddPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListenergetAccessibleAtaddFocusListener, contains, getAccessibleComponent, getAccessibleIndexInParent, getAccessibleParent, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocale, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblefirePropertyChange, getAccessibleAction, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStartaddFocusListener, contains, getAccessibleAt, getBackground, getBounds, getCursor, getFont, getFontMetrics, getForeground, getLocation, getLocationOnScreen, getSize, isEnabled, isFocusTraversable, isShowing, isVisible, removeFocusListener, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFont, setForeground, setLocation, setSize, setVisiblepublic JEditorPane.JEditorPaneAccessibleHypertextSupport()
public int getLinkCount()
getLinkCount in interface AccessibleHypertextpublic AccessibleHyperlink getLink(int i)
i-th hyperlink in the document or
null if there is no hyperlink with the specified index.getLink in interface AccessibleHypertexti - the index of the hyperlink to returni-th hyperlink in the document or
null if there is no hyperlink with the specified
indexpublic int getLinkIndex(int c)
c within the document, or -1 if there is no
link at the specified position.getLinkIndex in interface AccessibleHypertextc - the character index from which to fetch the link indexc within the document, or -1 if there
is no link at the specified positionpublic String getLinkText(int i)
i, or
null, if there is no link at the specified position.i - the index of the linki, or
null, if there is no link at the specified
position