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; ...@@ -27,11 +27,12 @@ import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Spinner; import org.eclipse.swt.widgets.Spinner;
/** /**
* Base class for {@link EditingSupport}s that provide a integer {@link Spinner}.
* *
* @author eder * @author eder
* @author $Author$ * @author $Author$
* @version $Rev$ * @version $Rev$
* @ConQAT.Rating GREEN Hash: 31B4795F99F85B3C5C363D1368F79245 * @ConQAT.Rating YELLOW Hash: 398F9179A4B7D7E5D792CFCD95E92837
*/ */
public abstract class AbstractIntegerSpinnerEditingSupport extends EditingSupport { public abstract class AbstractIntegerSpinnerEditingSupport extends EditingSupport {
/** /**
...@@ -45,22 +46,18 @@ public abstract class AbstractIntegerSpinnerEditingSupport extends EditingSuppor ...@@ -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() { protected abstract int getSpinnerMinimum();
return Integer.MAX_VALUE;
}
/** /**
* Retrieves the minimum value for the spinner. * Defines the maximum value for the spinner.
* *
* @return Minimum value. * @return Maximum value.
*/ */
protected int getSpinnerMinimum() { protected abstract int getSpinnerMaximum();
return 1;
}
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @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