blob: fd46014a6c3e61dba785d07a5ddf34282cf4b2c6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2020 Edwin Park and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Edwin Park - initial API and implementation
*******************************************************************************/
package org.eclipse.nebula.widgets.nattable.viewport;
import org.eclipse.swt.widgets.Listener;
/**
* Interface to abstract control of either an SWT ScrollBar or Slider.
*/
public interface IScroller<T> {
T getUnderlying();
boolean isDisposed();
void addListener(int eventType, Listener listener);
void removeListener(int eventType, Listener listener);
int getSelection();
void setSelection(int value);
int getMaximum();
void setMaximum(int value);
int getPageIncrement();
void setPageIncrement(int value);
int getThumb();
void setThumb(int value);
int getIncrement();
void setIncrement(int value);
boolean getEnabled();
void setEnabled(boolean b);
boolean getVisible();
void setVisible(boolean b);
}