FileDocCategorySizeDatePackage
SpinnerOption.javaAPI DocAndroid 1.5 API1338Wed May 06 22:42:46 BST 2009com.android.email.activity.setup

SpinnerOption

public class SpinnerOption extends Object

Fields Summary
public Object
value
public String
label
Constructors Summary
public SpinnerOption(Object value, String label)

        this.value = value;
        this.label = label;
    
Methods Summary
public static voidsetSpinnerOptionValue(android.widget.Spinner spinner, java.lang.Object value)

        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;
            }
        }
    
public java.lang.StringtoString()

        return label;