javax.swing
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.AccessibleFocusHandler
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
accessibleContainerHandler, accessibleFocusHandler
accessibleAWTComponentHandler, accessibleAWTFocusHandler
ACCESSIBLE_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, accessibleParent
CHARACTER, SENTENCE, WORD
CLICK, 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, getAccessibleStateSet
caretUpdate, 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, setTextContents
addPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener
getAccessibleAt
addFocusListener, 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, setVisible
firePropertyChange, getAccessibleAction, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
addFocusListener, 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, setVisible
public JEditorPane.JEditorPaneAccessibleHypertextSupport()
public int getLinkCount()
getLinkCount
in interface AccessibleHypertext
public AccessibleHyperlink getLink(int i)
i
-th hyperlink in the document or
null
if there is no hyperlink with the specified index.getLink
in interface AccessibleHypertext
i
- 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 AccessibleHypertext
c
- 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