1 /*******************************************************************************
2 * Copyright (c) 2009, 2017 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.accessibility;
19 * Instances of this class are sent as a result of accessibility clients
20 * sending AccessibleHyperlink messages to an accessible object.
22 * @see AccessibleHyperlinkListener
23 * @see AccessibleHyperlinkAdapter
27 public class AccessibleHyperlinkEvent extends EventObject {
29 public Accessible accessible;
32 * The value of this field must be set in the accessible hyperlink listener method
33 * before returning. What to set it to depends on the listener method called.
39 static final long serialVersionUID = 6253098373844074544L;
42 * Constructs a new instance of this class.
44 * @param source the object that fired the event
46 public AccessibleHyperlinkEvent(Object source) {
51 * Returns a string containing a concise, human-readable
52 * description of the receiver.
54 * @return a string representation of the event
57 public String toString () {
58 return "AccessibleHyperlinkEvent {" //$NON-NLS-1$
59 + "accessible=" + accessible //$NON-NLS-1$
60 + " string=" + result //$NON-NLS-1$
61 + " index=" + index //$NON-NLS-1$