javax.swing.text.html
Class AccessibleHTML

java.lang.Object
  extended byjavax.swing.text.html.AccessibleHTML
All Implemented Interfaces:
javax.accessibility.Accessible

class AccessibleHTML
extends Object
implements javax.accessibility.Accessible


Nested Class Summary
private  class AccessibleHTML.DocumentHandler
          DocumentListener installed on the current Document.
private  class AccessibleHTML.ElementInfo
          ElementInfo provides a slim down view of an Element.
protected  class AccessibleHTML.HTMLAccessibleContext
           
private  class AccessibleHTML.IconElementInfo
           
private  class AccessibleHTML.PropertyChangeHandler
           
private  class AccessibleHTML.RootHTMLAccessibleContext
           
private  class AccessibleHTML.TableElementInfo
          TableElementInfo encapsulates information about a HTML.Tag.TABLE.
(package private)  class AccessibleHTML.TextElementInfo
           
 
Field Summary
private  DocumentListener docListener
          DocumentListener installed on the current model.
private  JEditorPane editor
          The editor.
private  Document model
          Current model.
private  java.beans.PropertyChangeListener propChangeListener
          PropertyChangeListener installed on the editor
private  AccessibleHTML.ElementInfo rootElementInfo
          The root ElementInfo for the document
private  AccessibleHTML.RootHTMLAccessibleContext rootHTMLAccessibleContext
           
 
Constructor Summary
AccessibleHTML(JEditorPane pane)
           
 
Method Summary
private  void buildInfo()
          Rebuilds the information from the current info.
(package private)  AccessibleHTML.ElementInfo createElementInfo(Element e, AccessibleHTML.ElementInfo parent)
           
 javax.accessibility.AccessibleContext getAccessibleContext()
          Returns the root AccessibleContext for the document
private  Document getDocument()
          Returns the Document currently presenting information for.
private  Rectangle getRootEditorRect()
          Returns the bounds the root View will be rendered in.
private  AccessibleHTML.ElementInfo getRootInfo()
          Returns the ElementInfo representing the root Element.
private  View getRootView()
          Returns the root View associated with the current text component.
private  JEditorPane getTextComponent()
          Returns the JEditorPane providing information for.
private  Object lock()
          If possible acquires a lock on the Document.
private  void setDocument(Document document)
          Sets the document.
private  void unlock(Object key)
          Releases a lock previously obtained via lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

private JEditorPane editor
The editor.


model

private Document model
Current model.


docListener

private DocumentListener docListener
DocumentListener installed on the current model.


propChangeListener

private java.beans.PropertyChangeListener propChangeListener
PropertyChangeListener installed on the editor


rootElementInfo

private AccessibleHTML.ElementInfo rootElementInfo
The root ElementInfo for the document


rootHTMLAccessibleContext

private AccessibleHTML.RootHTMLAccessibleContext rootHTMLAccessibleContext
Constructor Detail

AccessibleHTML

public AccessibleHTML(JEditorPane pane)
Method Detail

setDocument

private void setDocument(Document document)
Sets the document.


getDocument

private Document getDocument()
Returns the Document currently presenting information for.


getTextComponent

private JEditorPane getTextComponent()
Returns the JEditorPane providing information for.


getRootInfo

private AccessibleHTML.ElementInfo getRootInfo()
Returns the ElementInfo representing the root Element.


getRootView

private View getRootView()
Returns the root View associated with the current text component.


getRootEditorRect

private Rectangle getRootEditorRect()
Returns the bounds the root View will be rendered in.


lock

private Object lock()
If possible acquires a lock on the Document. If a lock has been obtained a key will be retured that should be passed to unlock.


unlock

private void unlock(Object key)
Releases a lock previously obtained via lock.


buildInfo

private void buildInfo()
Rebuilds the information from the current info.


createElementInfo

AccessibleHTML.ElementInfo createElementInfo(Element e,
                                             AccessibleHTML.ElementInfo parent)

getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Returns the root AccessibleContext for the document

Specified by:
getAccessibleContext in interface javax.accessibility.Accessible