-
Notifications
You must be signed in to change notification settings - Fork 118
/
AccessibleValueListener.java
77 lines (72 loc) · 2.74 KB
/
AccessibleValueListener.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*******************************************************************************
* Copyright (c) 2009, 2010 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;
import java.util.*;
/**
* Classes which implement this interface provide methods
* that handle AccessibleValue events.
* <p>
* After creating an instance of a class that implements
* this interface it can be added to an accessible using the
* <code>addAccessibleValueListener</code> method and removed using
* the <code>removeAccessibleValueListener</code> method.
* </p>
*
* @see AccessibleValueAdapter
* @see AccessibleValueEvent
*
* @since 3.6
*/
public interface AccessibleValueListener extends EventListener {
/**
* Returns the value of this object as a number.
*
* @param e an event object containing the following fields:<ul>
* <li>[out] value - the number that is the current value of this object</li>
* </ul>
*/
public void getCurrentValue(AccessibleValueEvent e);
/**
* Sets the value of this object to the given number.
*
* The argument is clipped to the valid interval whose upper and lower
* bounds are returned by getMaximumValue and getMinimumValue,
* i.e. if it is lower than the minimum value the new value will be the minimum,
* and if it is greater than the maximum then the new value will be the maximum.
*
* @param e an event object containing the following fields:<ul>
* <li>[in/out] value - on input, the number that will be the new value of this object
* <br>- on output, set to null if the value cannot be set</li>
* </ul>
*/
public void setCurrentValue(AccessibleValueEvent e);
/**
* Returns the maximum value that can be represented by this object.
*
* @param e an event object containing the following fields:<ul>
* <li>[out] value - the number that is the maximum value that this object can represent.
* If this object has no upper bound then null is returned.</li>
* </ul>
*/
public void getMaximumValue(AccessibleValueEvent e);
/**
* Returns the minimum value that can be represented by this object.
*
* @param e an event object containing the following fields:<ul>
* <li>[out] value - the number that is the minimum value that this object can represent.
* If this object has no lower bound then null is returned.</li>
* </ul>
*/
public void getMinimumValue(AccessibleValueEvent e);
}