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

AccessibleJTextComponent methods have no actual doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta2
    • sparc
    • solaris_2.6



      Name: aaR10142 Date: 01/04/2001



      Javadoc for new methods in swing.JTextComponent.AccessibleJTextComponent inner class have been copied from the interfaces and do not describe actual behavior
      of the methods.

      For example:
      The javadoc says:
      public void setAttributes(int startIndex,
                                int endIndex,
                                AttributeSet as)

           Sets attributes for the text between two
           indices.
      "
      But actualy the setAttributes() methods do nothing
      So the javadoc should say somthing like "Implements to do nothing"

      Or the javadoc says "
      public String getAccessibleActionDescription(int i)

           Returns a description of the specified action of
           the object.
      "

      The javadoc should say that this method uses TextActions,
      and this method returns Action.NAME property (not Action.SHORT_DESCRIPTION for example)



      The list of undocumented methods follow

      public AccessibleAction getAccessibleAction()
      public int getAccessibleActionCount()
      public String getAccessibleActionDescription(int i)
      public boolean doAccessibleAction(int i)
      public AccessibleEditableText getAccessibleEditableText()
      public void cut(int startIndex, int endIndex)
      public void paste(int index)
      public void setTextContents(String contents)
      public void insertTextAtIndex(int index, String contents)
      public String getTextRange(int startIndex,int endIndex)
      public void delete(int startIndex,int endIndex)
      public void replaceText(int index, String contents)
      public void selectText(int startIndex,int endIndex)


      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: