/** * Create the controller. * * @param service The is the data query service. * @param labelPrefix Prefix used to resolve label id's with placeholders. * @param propertyPrefix Prefix for property names. * @param printStyleSheet Optional style sheet to apply when printing. * @param patientAware If true, uses patient context. * @param autowireColumns If true, columns are auto-wired with sort comparators. * @param grouper The grouper implementation, or null if the data is not grouped. */ @SuppressWarnings("unchecked") public AbstractMeshController(IQueryService<T> service, String labelPrefix, String propertyPrefix, String printStyleSheet, boolean patientAware, boolean autowireColumns, IGrouper<M, ?> grouper) { super(service, patientAware, labelPrefix); this.propertyPrefix = propertyPrefix; this.autowireColumns = autowireColumns; if (printStyleSheet != null && !printStyleSheet.startsWith("~./")) { printStyleSheet = ZKUtil.getResourcePath(getClass()) + printStyleSheet; } this.printStyleSheet = printStyleSheet; this.grouper = grouper; this.listModel = new HybridModel<M, Object>((IGrouper<M, Object>) grouper); }
@Override protected void init() { setup("Anticoagulation Data", "", "BGOVCOAG GET", null, 1, "Indicated", "Visit Date", "INR Goal", "Min", "Max", "Duration", "Start Date", "End Date", "Entered Date", "Category", "Comment"); toolbar.setVisible(true); setIcon(ZKUtil.getResourcePath(MainController.class) + "main-icon.png"); super.init(); }
public void onTest() throws Exception { PopupDialog popup = new PopupDialog(null, "Test Popup"); setSizable(false); ZKUtil.loadZulPage(ZKUtil.getResourcePath(PopupTest.class) + "testPopup2.zul", popup); popup.addForward("onTest", this, null); popup.show(); } }