|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.accessibility.AccessibleHyperlink
javax.swing.JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink
public class JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink
The accessible representation of a HTML link.
| Field Summary |
|---|
| Fields inherited from interface javax.accessibility.AccessibleAction |
|---|
CLICK, DECREMENT, INCREMENT, TOGGLE_EXPAND, TOGGLE_POPUP |
| Constructor Summary | |
|---|---|
JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(Element el)
Creates a new HTMLLink. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEditorPane.JEditorPaneAccessibleHypertextSupport.HTMLLink(Element el)
HTMLLink.
el - the link element| Method Detail |
|---|
public 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-based
true 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 index
iAccessibleHyperlink.getAccessibleActionCount()public Object getAccessibleActionObject(int i)
URL object, that represents the action at action
index i.
getAccessibleActionObject in class AccessibleHyperlinki - the action index
URL 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-based
AccessibleHyperlink.getAccessibleActionCount()public int getStartIndex()
getStartIndex in class AccessibleHyperlinkpublic int getEndIndex()
getEndIndex in class AccessibleHyperlink
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||