org.eclipse.swt.accessibility.AccessibleValueAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.swt.gtk.linux.ppc64le Show documentation
Show all versions of org.eclipse.swt.gtk.linux.ppc64le Show documentation
Standard Widget Toolkit for GTK on ppc64le
The newest version!
/*******************************************************************************
* Copyright (c) 2009, 2016 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;
/**
* This adapter class provides default implementations for the
* methods in the AccessibleValueListener
interface.
*
* Classes that wish to deal with AccessibleValue
events can
* extend this class and override only the methods that they are
* interested in.
*
*
* @see AccessibleValueListener
* @see AccessibleValueEvent
*
* @since 3.6
*/
public class AccessibleValueAdapter implements AccessibleValueListener {
/**
* Returns the value of this object as a number.
*
* @param e an event object containing the following fields:
* - [out] value - the number that is the current value of this object
*
*/
@Override
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:
* - [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
*
*/
@Override
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:
* - [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.
*
*/
@Override
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:
* - [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.
*
*/
@Override
public void getMinimumValue(AccessibleValueEvent e) {}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy