Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4286284

Implement the AccessibleEditableText interface on relevant text components

XMLWordPrintable

    • beta
    • generic
    • generic
    • Not verified



      Name: wj18071 Date: 10/29/99


      AccessibleText, an already implemented interface, provides the
      ability to find out information about text in a text component
      (e.g. font attribute, text content, font color, etc.) but it
      doesn't provide support enabling an assistive technology to
      fully interact with the text. What the AccessibleEditableText
      interface will do is provide the support that enables assistive
      technologies to actually make changes in editable by the user
      text.

      To be somewhat more specific the interface will allow an
      assistive technology to manipulate text in a number of ways.
      The following is an extraction of the methods this interface
      will provide. Please note that it's a first draft and we have
      changes/enhancements already planned.

      public interface AccessibleEditableText extends AccessibleText {
       void setTextContents(String s);
       void insertTextAfterIndex(int part, int index);
       void insertTextBeforeIndex(int part, int index);
       void getTextRange(int startIndex, int endIndex);
       void delete(int startIndex, int endIndex);
       void cut(int startIndex, int endIndex);
       void paste(int startIndex);
       void replaceText(int startIndex, int endIndex, String s);
       void selectText(int startIndex, int endIndex); //Acts as a toggle
      }

      The benefit is greater user control of text thru the assistive
      technology (e.g. speech recognition) they are using.
      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            ejohnsonsunw Earl Johnson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: