org.eclipse.swt.accessibility.AccessibleHyperlinkAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.swt.gtk.linux.ppc64le Show documentation
Show all versions of org.eclipse.swt.gtk.linux.ppc64le Show documentation
Standard Widget Toolkit for GTK on ppc64le
The newest version!
/*******************************************************************************
* Copyright (c) 2009, 2016 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.accessibility;
/**
* 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.
*
*
* @see AccessibleHyperlinkListener
* @see AccessibleHyperlinkEvent
*
* @since 3.6
*/
public class AccessibleHyperlinkAdapter implements AccessibleHyperlinkListener {
/**
* Returns the anchor for the link at the specified index.
*
* @param e 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.
*
*/
@Override
public void getAnchor(AccessibleHyperlinkEvent e) {}
/**
* Returns the target of the link at the specified index.
*
* @param e 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.
*
*/
@Override
public void getAnchorTarget(AccessibleHyperlinkEvent e) {}
/**
* 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.
*
*
* @param e an event object containing the following fields:
* - [out] index
*
*/
@Override
public void getStartIndex(AccessibleHyperlinkEvent e) {}
/**
* 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.
*
*
* @param e an event object containing the following fields:
* - [out] index
*
*/
@Override
public void getEndIndex(AccessibleHyperlinkEvent e) {}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy