this.value = value; this.label = label;
for (int i = 0, count = spinner.getCount(); i < count; i++) { SpinnerOption so = (SpinnerOption)spinner.getItemAtPosition(i); if (so.value.equals(value)) { spinner.setSelection(i, true); return; } }
return label;