/** * Callback to start the timer. This must be done in a separate execution from the call to * timer.stop. Otherwise, the timer will not be reset. */ public void onResetTimer$timer() { if (timer != null) { timer.start(); } }
/** * Callback to start the timer. This must be done in a separate execution from the call to * timer.stop. Otherwise, the timer will not be reset. */ public void onResetTimer$timer() { if (timer != null) { timer.start(); } }
/** Start or stops the timer. */ public void setRunning(boolean running) { if (running) start(); else stop(); }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); timer.start(); }
private void refreshPatientList() { timer.stop(); if (activeList != null) { Collection<PatientListItem> items; if (activeList.isPending()) { items = pendingListItem; timer.start(); } else { items = activeList.getListItems(); } ListModelList<PatientListItem> model = items == null ? new ListModelList<PatientListItem>() : new ListModelList<PatientListItem>(items); if (model.isEmpty()) { model.add(new PatientListItem(null, txtNoPatients)); } lstPatientList.setModel(model); lblPatientList.setValue(activeList.getDisplayName()); } else { lstPatientList.setModel((ListModel<?>) null); lblPatientList.setValue(txtNoList); } setActivePatient((Patient) null); }