/** * Process a form submission request from another controller. */ public void onSubmit() { timer.stop(); timer = null; Clients.submitForm(loginForm); }
/** * 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(); } }
public void render(Component comp, Writer out) throws IOException { final SmartWriter wh = new SmartWriter(out); final Timer self = (Timer) comp; wh.write("<span id=\"").write(self.getUuid()).write("\" z.type=\"zul.timer.Timer\"") .write(self.getOuterAttrs()).write(self.getInnerAttrs()).write("></span>"); } }
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) throws java.io.IOException { super.renderProperties(renderer); render(renderer, "repeats", _repeats); if (_delay != 0) renderer.render("delay", _delay); if (!_running) renderer.render("running", false); } }
/** * Process a form submission request from another controller. */ public void onSubmit() { timer.stop(); timer = null; Clients.submitForm(loginForm); }
/** * 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(); } }
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); }
/** * Restarts the timer. */ private void resetTimer() { if (timer != null) { timer.stop(); Events.echoEvent("onResetTimer", timer, null); } }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); timer.start(); }
/** * Restarts the timer. */ private void resetTimer() { if (timer != null) { timer.stop(); Events.echoEvent("onResetTimer", timer, null); } }
public void onTimer$timer() { if (activeList == null || !activeList.isPending()) { timer.stop(); refreshPatientList(); } }