/** Appends a radio button. */ public Radio appendItem(String label, String value) { final Radio item = new Radio(); item.setLabel(label); item.setValue(value); item.setParent(this); return item; }
/** * Loads the registered lists into the radio group. */ private void initRegisteredLists() { for (IPatientList list : registry) { if (!list.isDisabled()) { Radio radio = new Radio(list.getName()); radio.setAttribute(ATTR_PATIENT_LIST, list); rgrpLists.appendChild(radio); if (list == favorites) { radio.setId("radFavorites"); } } } rgrpLists.setSelectedIndex(0); pendingListItem.add(new PatientListItem(null, txtWaitMessage)); }
int pgsz = subset.getSize(), ofs = 0; for (int j = 0; j < pgsz; ++j) { Radio item = new Radio(); item.applyProperties(); item.setParent(this);