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
- 所有已实现的接口:
-
Serializable
,EventListener
,AccessibleAction
,AccessibleComponent
,AccessibleEditableText
,AccessibleExtendedComponent
,AccessibleExtendedText
,AccessibleHypertext
,AccessibleText
,CaretListener
,DocumentListener
- 封装类:
-
JEditorPane
protected class JEditorPane.JEditorPaneAccessibleHypertextSupport extends JEditorPane.AccessibleJEditorPane implements AccessibleHypertext
AccessibleJEditorPaneHTML.getAccessibleText
返回的内容。在这个JEditorPane
中提供对AccessibleHypertext
的支持,以防正在显示HTML文档。
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
一个HTML链接。Nested classes/interfaces declared in class javax.swing.JComponent.AccessibleJComponent
JComponent.AccessibleJComponent.AccessibleContainerHandler, JComponent.AccessibleJComponent.AccessibleFocusHandler
Nested classes/interfaces declared in class java.awt.Component.AccessibleAWTComponent
Component.AccessibleAWTComponent.AccessibleAWTComponentHandler, Component.AccessibleAWTComponent.AccessibleAWTFocusHandler
-
Field Summary
Fields declared in class javax.swing.JComponent.AccessibleJComponent
accessibleFocusHandler
Fields declared in class java.awt.Container.AccessibleAWTContainer
accessibleContainerHandler
Fields declared in class java.awt.Component.AccessibleAWTComponent
accessibleAWTComponentHandler, accessibleAWTFocusHandler
Fields declared in class javax.accessibility.AccessibleContext
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
Fields declared in interface javax.accessibility.AccessibleAction
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP
Fields declared in interface javax.accessibility.AccessibleExtendedText
ATTRIBUTE_RUN, LINE
Fields declared in interface javax.accessibility.AccessibleText
CHARACTER, SENTENCE, WORD
-
Constructor Summary
ConstructorDescription构造一个JEditorPaneAccessibleHypertextSupport
。 -
Method Summary
Modifier and TypeMethodDescriptiongetLink
(int linkIndex) 返回与索引相关的超链接数组中的索引。int
返回此超文本文档中的链接数。int
getLinkIndex
(int charIndex) 返回与此字符索引相关的超链接数组中的索引,如果没有与此索引相关的超链接,则返回-1。getLinkText
(int linkIndex) 返回与此超链接相关的文档中的连续文本。Methods declared in class javax.swing.JEditorPane.AccessibleJEditorPane
getAccessibleDescription, getAccessibleStateSet
Methods declared in class javax.swing.text.JTextComponent.AccessibleJTextComponent
caretUpdate, changedUpdate, cut, delete, doAccessibleAction, getAccessibleActionCount, getAccessibleActionDescription, getAccessibleEditableText, getAccessibleRole, getAccessibleText, getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart, getTextBounds, getTextRange, getTextSequenceAfter, getTextSequenceAt, getTextSequenceBefore, insertTextAtIndex, insertUpdate, paste, removeUpdate, replaceText, selectText, setAttributes, setTextContents
Methods declared in class javax.swing.JComponent.AccessibleJComponent
addPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getAccessibleKeyBinding, getAccessibleName, getBorderTitle, getTitledBorderText, getToolTipText, removePropertyChangeListener
Methods declared in class java.awt.Container.AccessibleAWTContainer
getAccessibleAt
Methods declared in class java.awt.Component.AccessibleAWTComponent
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
Methods declared in class javax.accessibility.AccessibleContext
firePropertyChange, getAccessibleAction, getAccessibleIcon, getAccessibleRelationSet, getAccessibleSelection, getAccessibleTable, getAccessibleValue, setAccessibleDescription, setAccessibleName, setAccessibleParent
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javax.accessibility.AccessibleComponent
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
Methods declared in interface javax.accessibility.AccessibleText
getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart
-
Constructor Details
-
JEditorPaneAccessibleHypertextSupport
public JEditorPaneAccessibleHypertextSupport()构造一个JEditorPaneAccessibleHypertextSupport
。
-
-
Method Details
-
getLinkCount
public int getLinkCount()返回此超文本文档中的链接数。- 指定者:
-
getLinkCount
在接口AccessibleHypertext
- 返回:
- 此超文本文档中的链接数。
-
getLinkIndex
public int getLinkIndex(int charIndex) 返回与此字符索引相关的超链接数组中的索引,如果没有与此索引相关的超链接,则返回-1。- 指定者:
-
getLinkIndex
在接口AccessibleHypertext
- 参数:
-
charIndex
- 文本中的索引 - 返回:
- 此超文本文档的超链接集合中的索引。
-
getLink
返回与此索引相关的超链接数组中的索引。如果此索引处没有超链接,则返回null。- 指定者:
-
getLink
在接口AccessibleHypertext
- 参数:
-
linkIndex
- 超文本文档中的超链接集合中的索引。 - 返回:
- 超链接的字符串表示形式
-
getLinkText
返回与此超链接相关的文档中的连续文本。- 参数:
-
linkIndex
- 超文本文档中的超链接集合中的索引。 - 返回:
- 与此索引处链接共享的连续文本
-