Commit 7c39860f authored by Simon Barner's avatar Simon Barner
Browse files

YELLOW

parent 7ea5e92c
......@@ -27,11 +27,12 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Spinner;
/**
* Base class for {@link EditingSupport}s that provide a integer {@link Spinner}.
*
* @author eder
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 31B4795F99F85B3C5C363D1368F79245
* @ConQAT.Rating YELLOW Hash: 398F9179A4B7D7E5D792CFCD95E92837
*/
public abstract class AbstractIntegerSpinnerEditingSupport extends EditingSupport {
/**
......@@ -45,22 +46,18 @@ public abstract class AbstractIntegerSpinnerEditingSupport extends EditingSuppor
}
/**
* Retrieves the maximum value for the spinner.
* Defines the minimum value for the spinner.
*
* @return Maximum value.
* @return Minimum value.
*/
protected int getSpinnerMaximum() {
return Integer.MAX_VALUE;
}
protected abstract int getSpinnerMinimum();
/**
* Retrieves the minimum value for the spinner.
* Defines the maximum value for the spinner.
*
* @return Minimum value.
* @return Maximum value.
*/
protected int getSpinnerMinimum() {
return 1;
}
protected abstract int getSpinnerMaximum();
/** {@inheritDoc} */
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment