public class JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink extends javax.accessibility.AccessibleHyperlink
| Constructor and Description |
|---|
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(javax.swing.text.Element el)
Creates a new
HTMLLink. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doAccessibleAction(int i)
Performs the specified action on the link object.
|
java.lang.Object |
getAccessibleActionAnchor(int i)
Returns an object that represents the link anchor.
|
int |
getAccessibleActionCount()
Returns the number of AccessibleActions in this link object.
|
java.lang.String |
getAccessibleActionDescription(int i)
Returns the description of the action at action index
i. |
java.lang.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(javax.swing.text.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 javax.accessibility.AccessibleHyperlinktrue if this HTMLLink is still
validpublic int getAccessibleActionCount()
getAccessibleActionCount in interface javax.accessibility.AccessibleActiongetAccessibleActionCount in class javax.accessibility.AccessibleHyperlinkpublic boolean doAccessibleAction(int i)
doAccessibleAction in interface javax.accessibility.AccessibleActiondoAccessibleAction in class javax.accessibility.AccessibleHyperlinki - the action to perform, 0-basedtrue if the action has been performed
successfully, false otherwiseAccessibleHyperlink.getAccessibleActionCount()public java.lang.String getAccessibleActionDescription(int i)
i.
This method returns the text within the element associated with this
link.getAccessibleActionDescription in interface javax.accessibility.AccessibleActiongetAccessibleActionDescription in class javax.accessibility.AccessibleHyperlinki - the action indexiAccessibleHyperlink.getAccessibleActionCount()public java.lang.Object getAccessibleActionObject(int i)
URL object, that represents the action at action
index i.getAccessibleActionObject in class javax.accessibility.AccessibleHyperlinki - the action indexURL object, that represents the action at action
index iAccessibleHyperlink.getAccessibleActionCount()public java.lang.Object getAccessibleActionAnchor(int i)
String object is
returned, if the link encloses an <img> tag, then an
ImageIcon object is returned.getAccessibleActionAnchor in class javax.accessibility.AccessibleHyperlinki - the link to retrieve, 0-basedAccessibleHyperlink.getAccessibleActionCount()public int getStartIndex()
getStartIndex in class javax.accessibility.AccessibleHyperlinkpublic int getEndIndex()
getEndIndex in class javax.accessibility.AccessibleHyperlink