mirror of
https://github.com/mirror/jdownloader.git
synced 2025-02-21 13:01:53 +00:00
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49557 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Former-commit-id: 7daf5050d5feb14534212a21672349cf6c155a5c
This commit is contained in:
parent
b92b9fc2a8
commit
f9bf75edfd
@ -263,11 +263,13 @@ public class CustomPanel extends MigPanel {
|
||||
final SpinnerValidator spinnerValidator = gs.getAnnotation(SpinnerValidator.class);
|
||||
int min = -1;
|
||||
int max = 10000;
|
||||
int step = 1;
|
||||
if (spinnerValidator != null) {
|
||||
min = (int) spinnerValidator.min();
|
||||
max = (int) spinnerValidator.max();
|
||||
step = (int) Math.max(1, spinnerValidator.step());
|
||||
}
|
||||
final ExtSpinner spinner = new ExtSpinner(new SpinnerNumberModel(value.intValue(), min, max, 1));
|
||||
final ExtSpinner spinner = new ExtSpinner(new SpinnerNumberModel(value.intValue(), min, max, step));
|
||||
spinner.addChangeListener(new ChangeListener() {
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user