javax.swing 
 类 JEditorPane.JEditorPaneAccessibleHypertextSupport
 
  
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 中显示 HTML 文档的情况下,提供对 AccessibleHypertext 的支持。 
   
   
  
 
   
    
     
    
  
    
     
  
    
     
   
  
    
    
  
    
    
  
    
    
  
    
   
   
     
     | 从类 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 |  
    
 
   
  
  
  
    
    
  
    
    
  
    
     
   
  
    
     
   
  
    
    
  
    
    
  
    
   
   
     
     | 从类 javax.swing.text.JTextComponent.AccessibleJTextComponent 继承的方法 |  
    
 
     
     caretUpdate, changedUpdate, cut, delete, doAccessibleAction, getAccessibleAction, 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 |  
    
 
   
  
  
  
    
    
  
    
    
  
    
   
   
     
     | 从类 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 |  
    
 
   
  
  
  
    
    
  
    
   
   
     
     | 从类 java.lang.Object 继承的方法 |  
    
 
     
     clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |  
    
 
   
  
  
  
    
   
   
     
     | 从接口 javax.accessibility.AccessibleText 继承的方法 |  
    
 
     
     getAfterIndex, getAtIndex, getBeforeIndex, getCaretPosition, getCharacterAttribute, getCharacterBounds, getCharCount, getIndexAtPoint, getSelectedText, getSelectionEnd, getSelectionStart |  
    
 
   
  
  
  
    
   
   
     
     | 从接口 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 |  
    
 
   
  
   
   
    
     
   
  
   
   JEditorPane.JEditorPaneAccessibleHypertextSupport
 
  
public JEditorPane.JEditorPaneAccessibleHypertextSupport()
 
   
   - 
    提供某种支持 
    
 
    
  
 
   
  
    
   
  
   
   getLinkCount
 
  
public int getLinkCount()
 
   
   - 
    返回此超文本文档中的链接数。 
    
 
    
   - 
    
 
     - 
      指定者:
     
 
     - 
      接口 
      
AccessibleHypertext 中的 
      getLinkCount
      
    
 
     
   - 
    
 
     - 
      返回:
     
 
     - 
      此超文本文档中的链接数。
     
 
    
 
     
  
 
  
 
  
   
   getLinkIndex
 
  
public int getLinkIndex(int charIndex)
 
   
   - 
    返回超链接数组中与此字符索引关联的超链接索引;如果没有与此索引关联的超链接,则返回 -1。 
    
 
    
   - 
    
 
     - 
      指定者:
     
 
     - 
      接口 
      
AccessibleHypertext 中的 
      getLinkIndex
      
    
 
     
   - 
    
 
     - 
      参数:
     
 
     - 
      
charIndex - 文本中的索引 
      
     - 
      返回:
     
 
     - 
      超链接集合中针对此超文本文档的索引。
     
 
    
 
     
  
 
  
 
  
   
   getLink
 
  
public AccessibleHyperlink getLink(int linkIndex)
 
   
   - 
    返回超链接数组中该索引处的链接。如果在此索引处没有超链接,则返回 null。 
    
 
    
   - 
    
 
     - 
      指定者:
     
 
     - 
      接口 
      
AccessibleHypertext 中的 
      getLink
      
    
 
     
   - 
    
 
     - 
      参数:
     
 
     - 
      
linkIndex - 超链接集合中针对此超文本文档的索引。 
      
     - 
      返回:
     
 
     - 
      超链接的字符串表示形式
     
 
    
 
     
  
 
  
 
  
   
   getLinkText
 
  
public String getLinkText(int linkIndex)
 
   
   - 
    返回文档中与此超链接关联的连续文本。 
    
 
    
   - 
    
 
    
 
     
   - 
    
 
     - 
      参数:
     
 
     - 
      
linkIndex - 超链接集合中针对此超文本文档的索引。 
      
     - 
      返回:
     
 
     - 
      共享此索引处的链接的连续文本
     
 
    
 
     
  
 
   
  
 
   
  
    
   
   
   
   
  
 
  提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 
  版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。