lblInit = new Label(pane, SWT.NONE);
lblInit.setText(Messages.NumberAccessible_Initial_Value);
data = new GridData();
data.horizontalIndent = 25;
lblInit.setLayoutData(data);
spInit = new Spinner(pane, SWT.BORDER);
spInit.setMinimum(0);
spInit.setMaximum(Integer.MAX_VALUE);
spInit.setSelection(0);
data = new GridData();
data.horizontalAlignment = SWT.FILL;
spInit.setLayoutData(data);
btnMin = new Button(pane, SWT.CHECK);
btnMin.setText(Messages.NumberAccessible_Min);
data = new GridData();
data.horizontalIndent = 25;
btnMin.setLayoutData(data);
btnMin.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
btnMinSelected();
}
});
spMin = new Spinner(pane, SWT.BORDER);
data = new GridData();
data.horizontalAlignment = SWT.FILL;
spMin.setLayoutData(data);
spMin.setMinimum(0);
spMin.setMaximum(Integer.MAX_VALUE);
spMin.setSelection(0);
btnMax = new Button(pane, SWT.CHECK);
btnMax.setText(Messages.NumberAccessible_Max);
data = new GridData();
data.horizontalIndent = 25;
btnMax.setLayoutData(data);
btnMax.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
btnMaxSelected();
}
});
spMax = new Spinner(pane, SWT.BORDER);
data = new GridData();
data.horizontalAlignment = SWT.FILL;
spMax.setLayoutData(data);
spMax.setMinimum(0);
spMax.setMaximum(Integer.MAX_VALUE);
spMax.setSelection(0);
lblStep = new Label(pane, SWT.NONE);
lblStep.setText(Messages.NumberAccessible_Step_Size);
data = new GridData();
data.horizontalIndent = 25;
lblStep.setLayoutData(data);
spStep = new Spinner(pane, SWT.BORDER);
data = new GridData();
data.horizontalAlignment = SWT.FILL;
spStep.setLayoutData(data);
spStep.setSelection(1);
spStep.setMinimum(1);