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 AccessibleHyperlinktrue if this HTMLLink is still
validpublic int getAccessibleActionCount()
getAccessibleActionCount in interface AccessibleActiongetAccessibleActionCount in class AccessibleHyperlinkpublic boolean doAccessibleAction(int i)
doAccessibleAction in interface AccessibleActiondoAccessibleAction in class AccessibleHyperlinki - 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 AccessibleActiongetAccessibleActionDescription in class AccessibleHyperlinki - the action indexiAccessibleHyperlink.getAccessibleActionCount()public Object getAccessibleActionObject(int i)
URL object, that represents the action at action
index i.getAccessibleActionObject in class AccessibleHyperlinki - the action indexURL object, that represents the action at action
index iAccessibleHyperlink.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 AccessibleHyperlinki - the link to retrieve, 0-basedAccessibleHyperlink.getAccessibleActionCount()public int getStartIndex()
getStartIndex in class AccessibleHyperlinkpublic int getEndIndex()
getEndIndex in class AccessibleHyperlink