Code example for Spinner

Methods: setEnabled, setFocusable

0
		this.editable = editable;
		if (s != null) {
			myHandler.post(new Runnable() {
				@Override 
				public void run() { 
					s.setEnabled(isEditable());
					s.setFocusable(isEditable());
				} 
			}); 
		} 
	} 
 
	public boolean isEditable() { 
		return editable;
	} 
 
	@Override 
	public boolean save() { 
		return save((SpinnerItem) s.getSelectedItem());
	}