AccessibleAction
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink
public abstract class AccessibleHyperlink extends Object implements AccessibleAction
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP
Modifier | Constructor | Description |
---|---|---|
protected |
Constructor for subclasses to call. |
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
doAccessibleAction |
Performs the specified action on the object. |
abstract Object |
getAccessibleActionAnchor |
Returns an object that represents the link anchor, as appropriate for that link. |
abstract int |
getAccessibleActionCount() |
Returns the number of accessible actions available in this Link If there are more than one, the first one is NOT considered the "default" action of this LINK object (e.g. in an HTML imagemap). |
abstract String |
getAccessibleActionDescription |
Returns a string description of this particular link action. |
abstract Object |
getAccessibleActionObject |
Returns an object that represents the link action, as appropriate for that link. |
abstract int |
getEndIndex() |
Gets the index with the hypertext document at which this link ends. |
abstract int |
getStartIndex() |
Gets the index with the hypertext document at which this link begins. |
abstract boolean |
isValid() |
Since the document a link is associated with may have changed, this method returns whether or not this Link is still valid (with respect to the document it references). |
protected AccessibleHyperlink()
public abstract boolean isValid()
AccessibleHypertext
it belongs topublic abstract int getAccessibleActionCount()
AccessibleAction
in them.getAccessibleActionCount
in interface AccessibleAction
public abstract boolean doAccessibleAction(int i)
doAccessibleAction
in interface AccessibleAction
i
- zero-based index of actionstrue
if the action was performed; otherwise false
public abstract String getAccessibleActionDescription(int i)
Similarly, from this HTML: <a HREF="#top"><img src="top-hat.gif" alt="top hat"></a> this method would return "top hat"
getAccessibleActionDescription
in interface AccessibleAction
i
- zero-based index of the actionspublic abstract Object getAccessibleActionObject(int i)
i
- zero-based index of the actionspublic abstract Object getAccessibleActionAnchor(int i)
String
containing the text: "Accessibility". Similarly, from this HTML: <a HREF="#top"><img src="top-hat.gif" alt="top hat"></a> this might return the object ImageIcon("top-hat.gif", "top hat");
i
- zero-based index of the actionspublic abstract int getStartIndex()
public abstract int getEndIndex()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/accessibility/AccessibleHyperlink.html