Top Description Constructors Methods
org.eclipse.swt.accessibility

public Class AccessibleHyperlinkAdapter

extends Object
implements AccessibleHyperlinkListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.accessibility.AccessibleHyperlinkListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods in the AccessibleHyperlinkListener interface.

Classes that wish to deal with AccessibleHyperlink events can extend this class and override only the methods that they are interested in.

Since
3.6
See Also
AccessibleHyperlinkListener, AccessibleHyperlinkEvent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
getAnchor(AccessibleHyperlinkEvent
an event object containing the following fields:
  • [in] index - a 0 based index identifying the anchor if this object has more than one link, as in the case of an image map
  • [typical out] result - the returned anchor
  • [optional out] accessible - the returned anchor. Note: The returned anchor can either be a string or an accessible. For example, for a text link this could be the substring of the containing string where the substring is overridden with link behavior, and for an image link this could be the accessible for the image.
e
)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getAnchor.

Returns the anchor for the link at the specified index.
public void
getAnchorTarget(AccessibleHyperlinkEvent
an event object containing the following fields:
  • [in] index - a 0 based index identifying the anchor if this object has more than one link, as in the case of an image map
  • [typical out] result - the returned target
  • [optional out] accessible - the returned target. Note: The returned target can either be a string or an accessible. For example, this could be a string URI, or the accessible for the target object to be activated when the link is activated.
e
)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getAnchorTarget.

Returns the target of the link at the specified index.
public void
getEndIndex(AccessibleHyperlinkEvent
an event object containing the following fields:
  • [out] index
e
)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getEndIndex.

Returns the 0 based character offset at which the textual representation of the hyperlink ends.
public void
getStartIndex(AccessibleHyperlinkEvent
an event object containing the following fields:
  • [out] index
e
)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getStartIndex.

Returns the 0 based character offset at which the textual representation of the hyperlink starts.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AccessibleHyperlinkAdapterback to summary
public AccessibleHyperlinkAdapter()

Method Detail

getAnchorback to summary
public void getAnchor(AccessibleHyperlinkEvent e)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getAnchor.

Returns the anchor for the link at the specified index.

Parameters
e:AccessibleHyperlinkEvent

an event object containing the following fields:

  • [in] index - a 0 based index identifying the anchor if this object has more than one link, as in the case of an image map
  • [typical out] result - the returned anchor
  • [optional out] accessible - the returned anchor. Note: The returned anchor can either be a string or an accessible. For example, for a text link this could be the substring of the containing string where the substring is overridden with link behavior, and for an image link this could be the accessible for the image.
Annotations
@Override
getAnchorTargetback to summary
public void getAnchorTarget(AccessibleHyperlinkEvent e)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getAnchorTarget.

Returns the target of the link at the specified index.

Parameters
e:AccessibleHyperlinkEvent

an event object containing the following fields:

  • [in] index - a 0 based index identifying the anchor if this object has more than one link, as in the case of an image map
  • [typical out] result - the returned target
  • [optional out] accessible - the returned target. Note: The returned target can either be a string or an accessible. For example, this could be a string URI, or the accessible for the target object to be activated when the link is activated.
Annotations
@Override
getEndIndexback to summary
public void getEndIndex(AccessibleHyperlinkEvent e)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getEndIndex.

Returns the 0 based character offset at which the textual representation of the hyperlink ends.

The returned value is related to the AccessibleTextExtended interface of the object that owns this hyperlink. The character at the index is not part of the hypertext.

Parameters
e:AccessibleHyperlinkEvent

an event object containing the following fields:

  • [out] index
Annotations
@Override
getStartIndexback to summary
public void getStartIndex(AccessibleHyperlinkEvent e)

Implements org.eclipse.swt.accessibility.AccessibleHyperlinkListener.getStartIndex.

Returns the 0 based character offset at which the textual representation of the hyperlink starts.

The returned value is related to the AccessibleTextExtended interface of the object that owns this hyperlink.

Parameters
e:AccessibleHyperlinkEvent

an event object containing the following fields:

  • [out] index
Annotations
@Override