本文整理了Java中org.carewebframework.ui.zk.ZKUtil.detachChildren()
方法的一些代码示例,展示了ZKUtil.detachChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZKUtil.detachChildren()
方法的具体详情如下:
包路径:org.carewebframework.ui.zk.ZKUtil
类名称:ZKUtil
方法名:detachChildren
暂无
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1
private void setActivePatient(Patient patient) {
// Build the demographic display here
activePatient = patient;
root.setAttribute(Constants.SELECTED_PATIENT_ATTRIB, activePatient);
ZKUtil.detachChildren(pnlDemoRoot);
if (patient != null && patientDetailRenderer != null) {
patientDetailRenderer.render(pnlDemoRoot, patient, this);
}
btnDemoDetail.setDisabled(activePatient == null);
updateControls();
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
/**
* Re-renders a previously rendered list item.
*
* @param item List item to re-render.
*/
protected void rerender(Listitem item) {
try {
ZKUtil.detachChildren(item);
listBox.getItemRenderer().render(item, item.getValue(), item.getIndex());
} catch (Exception e) {
throw MiscUtil.toUnchecked(e);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
/**
* Re-renders a previously rendered row.
*
* @param row Row to re-render.
*/
protected void rerender(Row row) {
try {
ZKUtil.detachChildren(row);
grid.getRowRenderer().render(row, row.getValue(), row.getIndex());
} catch (Exception e) {
throw MiscUtil.toUnchecked(e);
}
}
代码示例来源:origin: org.hspconsortium.carewebframework/cwf-ui-patientheader
private void setPatient(Patient patient) {
this.patient = patient;
hideLabels();
needsDetail = true;
ZKUtil.detachChildren(pnlDetail);
if (log.isDebugEnabled()) {
log.debug("patient: " + patient);
}
if (patient == null) {
lblName.setValue(noSelection);
lblName.setSclass("z-bandbox-disabled");
btnDetail.setDisabled(true);
return;
}
btnDetail.setDisabled(false);
patientName = FhirUtil.formatName(patient.getName());
String mrn = FhirUtil.getMRNString(patient);
lblName.setValue(patientName + (mrn.isEmpty() ? "" : " (" + mrn + ")"));
lblName.setSclass(null);
setLabel(lblDOB, formatDateAndAge(patient.getBirthDate()), lblDOBLabel);
setLabel(lblDOD, formatDOD(patient.getDeceased()), lblDODLabel);
setLabel(lblGender, patient.hasGender() ? patient.getGender().getDisplay() : null, null);
Clients.resize(root);
}
内容来源于网络,如有侵权,请联系作者删除!