All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.odell.glazedlists.impl.swt.BoundedRangeControl Maven / Gradle / Ivy

/* Glazed Lists                                                 (c) 2003-2006 */
/* http://publicobject.com/glazedlists/                      publicboject.com,*/
/*                                                     O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.impl.swt;

// to proxy adding of SelectionListeners
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Scale;
import org.eclipse.swt.widgets.Slider;

/**
 * This interface is used by the Viewer classes for ThresholdList.
 * Despite both {@link Scale} and {@link Slider} having similar functional
 * and API requirements, no interface exists to allow them to be used
 * interchangeably.  This interface is designed to allow for that, within
 * the limited scope of what the ThresholdList Viewers need access to.
 *
 * @author Kevin Maltby
 */
public interface BoundedRangeControl {

    /**
     * Adds a listener to SelectionEvents on the underlying widget.
     */
    public void addSelectionListener(SelectionListener listener);

    /**
     * Returns the minimum value set on the widget.
     */
    public int getMinimum();

    /**
     * Returns the maximum value set on the widget.
     */
    public int getMaximum();

    /**
     * Returns the value that is currently selected on the widget.
     */
    public int getSelection();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy