]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleTableEvent.java
Merge branch 'bug-623' into release/1.43.0
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleTableEvent.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 AccessibleTable messages to an accessible object.
21  *
22  * @see AccessibleTableListener
23  * @see AccessibleTableAdapter
24  *
25  * @since 3.6
26  */
27 public class AccessibleTableEvent extends EventObject {
28
29         public Accessible accessible;
30         public Accessible[] accessibles;
31
32         /**
33          * The value of this field must be set in the accessible table listener method
34          * before returning. What to set it to depends on the listener method called.
35          */
36         public String result;
37
38         public int column;
39         public int row;
40         public int count;
41         public boolean isSelected;
42         public int[] selected;
43
44         static final long serialVersionUID = 1624586163666270447L;
45
46 /**
47  * Constructs a new instance of this class.
48  *
49  * @param source the object that fired the event
50  */
51 public AccessibleTableEvent(Object source) {
52         super(source);
53 }
54
55 /**
56  * Returns a string containing a concise, human-readable
57  * description of the receiver.
58  *
59  * @return a string representation of the event
60  */
61 @Override
62 public String toString () {
63         return "AccessibleTableEvent {" //$NON-NLS-1$
64                 + "accessible=" + accessible   //$NON-NLS-1$
65                 + " accessibles=" + accessibles   //$NON-NLS-1$
66                 + " string=" + result   //$NON-NLS-1$
67                 + " isSelected=" + isSelected   //$NON-NLS-1$
68                 + " column=" + column   //$NON-NLS-1$
69                 + " count=" + count   //$NON-NLS-1$
70                 + " row=" + row   //$NON-NLS-1$
71                 + " selected=" + selected   //$NON-NLS-1$
72                 + "}";  //$NON-NLS-1$
73 }
74 }