@Override protected void autowireColumns() { RowComparator.autowireColumnComparators(grid); }
@Override protected void autowireColumns() { RowComparator.autowireColumnComparators(listBox); }
/** * @see org.carewebframework.ui.FrameworkController#doAfterCompose(org.zkoss.zk.ui.Component) */ @Override public void doAfterCompose(final Component comp) throws Exception { super.doAfterCompose(comp); bgoSecurity = BgoUtil.initSecurity("BGO DISABLE SK EDITING", null); lbTests.setItemRenderer(skinTestRenderer); RowComparator.autowireColumnComparators(lbTests.getListhead().getChildren()); getAppFramework().registerObject(patientContextEventHandler); getAppFramework().registerObject(encounterContextEventHandler); patientContextEventHandler.committed(); log.trace("Controller composed"); }
/** * Initializes the controller. Loads user preferences and properties. */ @Override protected void initializeController() { setMeshElement(listBox, "list"); super.initializeController(); listBox.setItemRenderer(itemRenderer); setMultiple(listBox.isMultiple()); if (listBox.getListhead() != null) { RowComparator.autowireColumnComparators(listBox.getListhead().getChildren()); } }
/** * @see org.carewebframework.ui.FrameworkController#doAfterCompose(org.zkoss.zk.ui.Component) */ @Override public void doAfterCompose(final Component comp) throws Exception { super.doAfterCompose(comp); bgoSecurity = BgoUtil.initSecurity("BGO DISABLE PROB LIST EDITING", "BGOZ PROBLEM LIST EDIT"); lbProblems.setItemRenderer(problemRenderer); RowComparator.autowireColumnComparators(lbProblems.getListhead().getChildren()); m_bPersHistAndAct = SecurityUtil.isGranted("BGO PL INCLUDE PERS HIST W ACT"); for (Object item : cboFilter.getItems()) { Comboitem ci = (Comboitem) item; ProblemFilter filter = ProblemFilter.valueOf(ci.getValue().toString()); ci.setValue(m_bPersHistAndAct && filter == ProblemFilter.ACTIVE ? ProblemFilter.ACTIVE_PERSONAL : filter); } setFilter(getDefaultFilter()); getAppFramework().registerObject(patientContextEventHandler); getAppFramework().registerObject(encounterContextEventHandler); patientContextEventHandler.committed(); log.trace("Controller composed"); }
/** * 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); }
/** * Initializes the controller. Loads user preferences and properties. */ @Override protected void initializeController() { setMeshElement(grid, "grid"); super.initializeController(); grid.setRowRenderer(rowRenderer); boolean expandAll = getPropertyValue(Constants.PROPERTY_ID_EXPAND_DETAIL, Boolean.class, chkExpandAll != null && chkExpandAll.isChecked()); if (this.chkExpandAll != null) { this.chkExpandAll.setChecked(expandAll); } AbstractRowRenderer.setExpandDetail(grid, expandAll); if (grid.getColumns() != null) { RowComparator.autowireColumnComparators(grid.getColumns().getChildren()); } grid.setVflex("1"); }