/** * Sets the show all setting. If true, all notifications are displayed, regardless of any * patient association. If false, only notifications associated with the selected patient are * displayed. * * @param value The show all setting. */ public void setShowAll(boolean value) { showAll = value; if (rgFilter != null) { rgFilter.setSelectedItem(showAll ? radAll : radPatient); refresh(); } }
private void doSelectionChanged() { final Selectable<Object> smodel = getSelectableModel(); if (smodel.isSelectionEmpty()) { if (_jsel >= 0) setSelectedItem(null); return; } if (_jsel >= 0 && smodel.isSelected(_model.getElementAt(_jsel))) return; //nothing changed int j = 0; for (final Radio item : getItems()) { if (smodel.isSelected(_model.getElementAt(j++))) { setSelectedItem(item); return; } } setSelectedItem(null); //something wrong but be self-protected }
/** * When a radio button is selected, its associated patient list is activated. */ public void onCheck$rgrpLists() { Radio radio = rgrpLists.getSelectedItem(); if (radio == null) { radio = rgrpLists.getItemAtIndex(0); rgrpLists.setSelectedItem(radio); } IPatientList list = (IPatientList) radio.getAttribute(ATTR_PATIENT_LIST); setActiveList(list); }
item = (Radio) v; if (getSelectableModel().isSelected(value)) setSelectedItem(item);
/** * Set up display. */ @Override public void init() { super.init(); getContainer().registerProperties(this, "showAll", "alertDuration", "alertThreshold"); rgFilter.setSelectedItem(showAll ? radAll : radPatient); processingController = ProcessingController.create(this); lstNotification.setItemRenderer(renderer); RowComparator.autowireColumnComparators(lstNotification.getListhead().getChildren()); model.setMultiple(true); updatePatient(true); subscribe(true); }
rgIndicated.setSelectedItem(record.getIndicated() ? radYes : radNo); selectItem(cboGoal, record.getGoalRange()); selectItem(cboMin, formatDouble(record.getGoalMin()));