public class JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink extends AccessibleHyperlink
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP
Constructor and Description |
---|
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(Element el)
Creates a new
HTMLLink . |
Modifier and Type | Method and Description |
---|---|
boolean |
doAccessibleAction(int i)
Performs the specified action on the link object.
|
Object |
getAccessibleActionAnchor(int i)
Returns an object that represents the link anchor.
|
int |
getAccessibleActionCount()
Returns the number of AccessibleActions in this link object.
|
String |
getAccessibleActionDescription(int i)
Returns the description of the action at action index
i . |
Object |
getAccessibleActionObject(int i)
Returns an
URL object, that represents the action at action
index i . |
int |
getEndIndex()
Returns the end index of the hyperlink element.
|
int |
getStartIndex()
Returns the start index of the hyperlink element.
|
boolean |
isValid()
Returns
true if this HTMLLink is still
valid. |
public JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(Element el)
HTMLLink
.el
- the link elementpublic boolean isValid()
true
if this HTMLLink
is still
valid. A HTMLLink
can become invalid when the document
changes.isValid
in class AccessibleHyperlink
true
if this HTMLLink
is still
validpublic int getAccessibleActionCount()
getAccessibleActionCount
in interface AccessibleAction
getAccessibleActionCount
in class AccessibleHyperlink
public boolean doAccessibleAction(int i)
doAccessibleAction
in interface AccessibleAction
doAccessibleAction
in class AccessibleHyperlink
i
- the action to perform, 0-basedtrue
if the action has been performed
successfully, false
otherwiseAccessibleHyperlink.getAccessibleActionCount()
public String getAccessibleActionDescription(int i)
i
.
This method returns the text within the element associated with this
link.getAccessibleActionDescription
in interface AccessibleAction
getAccessibleActionDescription
in class AccessibleHyperlink
i
- the action indexi
AccessibleHyperlink.getAccessibleActionCount()
public Object getAccessibleActionObject(int i)
URL
object, that represents the action at action
index i
.getAccessibleActionObject
in class AccessibleHyperlink
i
- the action indexURL
object, that represents the action at action
index i
AccessibleHyperlink.getAccessibleActionCount()
public Object getAccessibleActionAnchor(int i)
String
object is
returned, if the link encloses an <img> tag, then an
ImageIcon
object is returned.getAccessibleActionAnchor
in class AccessibleHyperlink
i
- the link to retrieve, 0-basedAccessibleHyperlink.getAccessibleActionCount()
public int getStartIndex()
getStartIndex
in class AccessibleHyperlink
public int getEndIndex()
getEndIndex
in class AccessibleHyperlink