Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
public class: AccessibleHTML.TextElementInfo.TextAccessibleContext [javadoc | source]

All Implemented Interfaces:
    AccessibleText, AccessibleComponent, Accessible

Fields inherited from javax.swing.text.html.AccessibleHTML$HTMLAccessibleContext:
Fields inherited from javax.accessibility.AccessibleContext:
 public TextAccessibleContext(ElementInfo elementInfo) 
Method from javax.swing.text.html.AccessibleHTML$TextElementInfo$TextAccessibleContext Summary:
getAccessibleDescription,   getAccessibleName,   getAccessibleRole,   getAccessibleText,   getAfterIndex,   getAtIndex,   getBeforeIndex,   getCaretPosition,   getCharCount,   getCharacterAttribute,   getCharacterBounds,   getIndexAtPoint,   getSelectedText,   getSelectionEnd,   getSelectionStart
Methods from javax.swing.text.html.AccessibleHTML$HTMLAccessibleContext:
addFocusListener,   contains,   getAccessibleAt,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleComponent,   getAccessibleContext,   getAccessibleIndexInParent,   getAccessibleStateSet,   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 from javax.accessibility.AccessibleContext:
addPropertyChangeListener,   firePropertyChange,   getAccessibleAction,   getAccessibleChild,   getAccessibleChildrenCount,   getAccessibleComponent,   getAccessibleDescription,   getAccessibleEditableText,   getAccessibleIcon,   getAccessibleIndexInParent,   getAccessibleName,   getAccessibleParent,   getAccessibleRelationSet,   getAccessibleRole,   getAccessibleSelection,   getAccessibleStateSet,   getAccessibleTable,   getAccessibleText,   getAccessibleValue,   getLocale,   removePropertyChangeListener,   setAccessibleDescription,   setAccessibleName,   setAccessibleParent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.AccessibleHTML$TextElementInfo$TextAccessibleContext Detail:
 public String getAccessibleDescription() 
    Gets the accessibleDescription property of this object. If this property isn't set, returns the content type of this JEditorPane instead (e.g. "plain/text", "html/text").
 public String getAccessibleName() 
    Gets the accessibleName property of this object. The accessibleName property of an object is a localized String that designates the purpose of the object. For example, the accessibleName property of a label or button might be the text of the label or button itself. In the case of an object that doesn't display its name, the accessibleName should still be set. For example, in the case of a text field used to enter the name of a city, the accessibleName for the en_US locale could be 'city.'
 public AccessibleRole getAccessibleRole() 
    Gets the role of this object. The role of the object is the generic purpose or use of the class of this object. For example, the role of a push button is AccessibleRole.PUSH_BUTTON. The roles in AccessibleRole are provided so component developers can pick from a set of predefined roles. This enables assistive technologies to provide a consistent interface to various tweaked subclasses of components (e.g., use AccessibleRole.PUSH_BUTTON for all components that act like a push button) as well as distinguish between sublasses that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes and AccessibleRole.RADIO_BUTTON for radio buttons).

    Note that the AccessibleRole class is also extensible, so custom component developers can define their own AccessibleRole's if the set of predefined roles is inadequate.

 public AccessibleText getAccessibleText() 
 public String getAfterIndex(int part,
    int index) 
 public String getAtIndex(int part,
    int index) 
 public String getBeforeIndex(int part,
    int index) 
 public int getCaretPosition() 
    Return the zero-based offset of the caret. Note: That to the right of the caret will have the same index value as the offset (the caret is between two characters).
 public int getCharCount() 
    Return the number of characters (valid indicies)
 public AttributeSet getCharacterAttribute(int i) 
    Return the AttributeSet for a given character at a given index
 public Rectangle getCharacterBounds(int i) 
    Determine the bounding box of the character at the given index into the string. The bounds are returned in local coordinates. If the index is invalid an empty rectangle is returned.
 public int getIndexAtPoint(Point p) 
    Given a point in local coordinates, return the zero-based index of the character under that Point. If the point is invalid, this method returns -1.
 public String getSelectedText() 
    Returns the portion of the text that is selected.
 public int getSelectionEnd() 
    Returns the end offset within the selected text. If there is no selection, but there is a caret, the start and end offsets will be the same.
 public int getSelectionStart() 
    Returns the start offset within the selected text. If there is no selection, but there is a caret, the start and end offsets will be the same.