javax.accessibility
public abstract class AccessibleHyperlink extends Object implements AccessibleAction
Accessible
,
AccessibleContext
,
AccessibleText
,
AccessibleContext.getAccessibleText()
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP
Constructor and Description |
---|
AccessibleHyperlink()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
doAccessibleAction(int i)
Perform the specified action.
|
abstract Object |
getAccessibleActionAnchor(int i)
Get the anchor appropriate for the link, or null if the index is out of
bounds.
|
abstract int |
getAccessibleActionCount()
Get the number possible actions for this object, starting from 0.
|
abstract String |
getAccessibleActionDescription(int i)
Get the anchor text of the link, or null if the index is out of bounds.
|
abstract Object |
getAccessibleActionObject(int i)
Get the link location, or null if the index is out of bounds.
|
abstract int |
getEndIndex()
Gets the character index where this link ends in the parent hypertext
document.
|
abstract int |
getStartIndex()
Gets the character index where this link starts in the parent hypertext
document.
|
abstract boolean |
isValid()
Returns whether the document the link references is still valid, as the
association may have changed with a text edit.
|
public AccessibleHyperlink()
public abstract boolean isValid()
public abstract int getAccessibleActionCount()
getAccessibleActionCount
in interface AccessibleAction
public abstract boolean doAccessibleAction(int i)
doAccessibleAction
in interface AccessibleAction
i
- the action to perform, 0-basedgetAccessibleActionCount()
public abstract String getAccessibleActionDescription(int i)
getAccessibleActionDescription
in interface AccessibleAction
i
- the link to retrieve, 0-basedgetAccessibleActionCount()
public abstract Object getAccessibleActionObject(int i)
i
- the link to retrieve, 0-basedgetAccessibleActionCount()
public abstract Object getAccessibleActionAnchor(int i)
i
- the link to retrieve, 0-basedgetAccessibleActionCount()
public abstract int getStartIndex()
public abstract int getEndIndex()