]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleHyperlinkEvent.java
7a5ca71c981d343550b394219c8ef5af32e1aef1
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleHyperlinkEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2009, 2017 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.accessibility;
15
16 import java.util.*;
17
18 /**
19  * Instances of this class are sent as a result of accessibility clients
20  * sending AccessibleHyperlink messages to an accessible object.
21  *
22  * @see AccessibleHyperlinkListener
23  * @see AccessibleHyperlinkAdapter
24  *
25  * @since 3.6
26  */
27 public class AccessibleHyperlinkEvent extends EventObject {
28
29         public Accessible accessible;
30
31         /**
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.
34          */
35         public String result;
36
37         public int index;
38
39         static final long serialVersionUID = 6253098373844074544L;
40
41 /**
42  * Constructs a new instance of this class.
43  *
44  * @param source the object that fired the event
45  */
46 public AccessibleHyperlinkEvent(Object source) {
47         super(source);
48 }
49
50 /**
51  * Returns a string containing a concise, human-readable
52  * description of the receiver.
53  *
54  * @return a string representation of the event
55  */
56 @Override
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$
62                 + "}";  //$NON-NLS-1$
63 }
64 }