Package org.eclipse.swt.accessibility
Class AccessibleValueAdapter
- java.lang.Object
-
- org.eclipse.swt.accessibility.AccessibleValueAdapter
-
- All Implemented Interfaces:
EventListener
,AccessibleValueListener
,SWTEventListener
public class AccessibleValueAdapter extends Object implements AccessibleValueListener
This adapter class provides default implementations for the methods in theAccessibleValueListener
interface.Classes that wish to deal with
AccessibleValue
events can extend this class and override only the methods that they are interested in.- Since:
- 3.6
- See Also:
AccessibleValueListener
,AccessibleValueEvent
-
-
Constructor Summary
Constructors Constructor Description AccessibleValueAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getCurrentValue(AccessibleValueEvent e)
Returns the value of this object as a number.void
getMaximumValue(AccessibleValueEvent e)
Returns the maximum value that can be represented by this object.void
getMinimumValue(AccessibleValueEvent e)
Returns the minimum value that can be represented by this object.void
setCurrentValue(AccessibleValueEvent e)
Sets the value of this object to the given number.
-
-
-
Method Detail
-
getCurrentValue
public void getCurrentValue(AccessibleValueEvent e)
Returns the value of this object as a number.- Specified by:
getCurrentValue
in interfaceAccessibleValueListener
- Parameters:
e
- an event object containing the following fields:- [out] value - the number that is the current value of this object
-
setCurrentValue
public void setCurrentValue(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.- Specified by:
setCurrentValue
in interfaceAccessibleValueListener
- Parameters:
e
- an event object containing the following fields:- [in/out] value - on input, the number that will be the new value of this object
- on output, set to null if the value cannot be set
- [in/out] value - on input, the number that will be the new value of this object
-
getMaximumValue
public void getMaximumValue(AccessibleValueEvent e)
Returns the maximum value that can be represented by this object.- Specified by:
getMaximumValue
in interfaceAccessibleValueListener
- Parameters:
e
- an event object containing the following fields:- [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.
-
getMinimumValue
public void getMinimumValue(AccessibleValueEvent e)
Returns the minimum value that can be represented by this object.- Specified by:
getMinimumValue
in interfaceAccessibleValueListener
- Parameters:
e
- an event object containing the following fields:- [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.
-
-