/** * Helper method to select the current type in the type dropdown * * @param type The TypeInfo matching the radio button to selected or null to deselect them all. */ private void selectType(TypeInfo type) { mInternalTypeUpdate = true; mValues.type = type; if (type == null) { if (mTypeCombo.getSelectionIndex() != -1) { mTypeCombo.deselect(mTypeCombo.getSelectionIndex()); } } else { setSelectedType(type); } updateRootCombo(type); mInternalTypeUpdate = false; }
/** * deselect a Item of the combo. * * @param index */ public void deselect(Integer index) { combo.deselect(index); }