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

HTMLLink.getAccessibleActionAnchor(0) always returns String.

XMLWordPrintable

    • sparc
    • solaris_2.5.1



      Name: aaC67449 Date: 08/31/98



      swing.JEditorPane.JEditorPaneAccesssibleHypertextSupport.HTMLLink.getAccessibleActionAnchor(0) always returns String and never returns ImageIcon.
      But should return some times ImageIcon or else.

      See source code:"
                  /**
                   * Return an object that represents the link anchor,
                   * as appropriate for that link. E.g. from HTML:
                   * <a href="http://www.sun.com/access">Accessibility</a>
                   * this method would return a String containing the text:
                   * 'Accessibility'.
                   *
                   * Similarly, from this HTML:
                   * &lt;a HREF="#top"&gt;&lt;img src="top-hat.gif" alt="top hat"&gt;
      &lt;/a&gt;
                   * this might return the object ImageIcon("top-hat.gif", "top hat");
                   *
                   * @param i zero-based index of the actions
                   * @return an Object representing the hypertext anchor
                   * @see #getAccessibleActionCount
                   */
                  public Object getAccessibleActionAnchor(int i) {
                      return getAccessibleActionDescription(i);
                  }
       
       
       "

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

            pkorn Peter Korn (Inactive)
            aalievsunw Artem Aliev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: