package android.widget;

import android.view.View;

import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.SelectElement;

public class Spinner extends View {

	public Spinner(Element element) {
		super(element);
	}

	public void setSelection(int index) {
		SelectElement.as(element).setSelectedIndex(index);
	}

	public int getSelectedItemPosition() {
		return SelectElement.as(element).getSelectedIndex();
	}

	public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener listener) {
	}

}

@@ -139,44 +139,136 @@
 nt;%0A
-%0Apublic class Spinner extends View %7B
+import com.google.gwt.user.client.DOM;%0A%0Apublic class Spinner extends View %7B%0A%0A%09public Spinner() %7B%0A%09%09super(DOM.createSelect());%0A%09%7D
 %0A%0A%09p

Create spinned directly