/******************************************************************************* * 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 org.eclipse.swt.internal.SWTEventListener; /** * Classes which implement this interface provide methods * that handle AccessibleValue events. *

* After creating an instance of a class that implements * this interface it can be added to an accessible using the * addAccessibleValueListener method and removed using * the removeAccessibleValueListener method. *

* * @see AccessibleValueAdapter * @see AccessibleValueEvent * * @since 3.6 */ public interface AccessibleValueListener extends SWTEventListener { /** * Returns the value of this object as a number. * * @param e an event object containing the following fields: */ 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: */ 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: */ 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: */ public void getMinimumValue(AccessibleValueEvent e); }