/** * Display the issue viewer dialog for the specified items. * * @param items Esignature items that have issues for display. * @return True unless the dialog was canceled. * @throws Exception Unspecified exception. */ public static boolean execute(List<ESigItem> items) throws Exception { IssueViewer dlg = (IssueViewer) ZKUtil.loadZulPage(Constants.RESOURCE_PREFIX + "issueViewer.zul", null); dlg.init(items); dlg.doModal(); return !dlg.canceled; }
/** * Displays the signature review dialog. * * @param esigService Reference to the esignature service. * @param filter Optional filter to control which items are displayed. * @return True unless the dialog was canceled. * @throws Exception Unspecified exception. */ public static boolean execute(IESigService esigService, ESigFilter filter) throws Exception { Iterable<ESigItem> items = esigService.getItems(filter); if (items == null || !items.iterator().hasNext()) { return true; } ESigViewer dlg = (ESigViewer) ZKUtil.loadZulPage(Constants.RESOURCE_PREFIX + "esigViewer.zul", null); dlg.init(esigService, items); dlg.doModal(); return !dlg.canceled; }
/** * Show detail for specified list item. * * @param li The list item. */ protected void showDetail(Listitem li) { @SuppressWarnings("unchecked") M modelObject = li == null ? null : (M) li.getValue(); String detail = modelObject == null ? null : getDetail(modelObject); if (!StringUtils.isEmpty(detail)) { if (getShowDetailPane()) { detailView.setContent(detail); } else { Map<Object, Object> map = new HashMap<Object, Object>(); map.put("title", detailTitle); map.put("content", detail); map.put("allowPrint", getAllowPrint()); try { ((Window) ZKUtil.loadZulPage(Constants.RESOURCE_PREFIX + "resourceListDetail.zul", null, map)).doModal(); } catch (Exception e) { PromptDialog.showError(e); } } } }
/** * Initialize the login form. * * @param comp - The component */ @SuppressWarnings("deprecation") @Override public void doAfterCompose(final Component comp) throws Exception { super.doAfterCompose(comp); savedRequest = (SavedRequest) session.removeAttribute(org.carewebframework.security.spring.Constants.SAVED_REQUEST); final AuthenticationException authError = (AuthenticationException) session .removeAttribute(WebAttributes.AUTHENTICATION_EXCEPTION); CredentialsExpiredException expired = getException(authError, CredentialsExpiredException.class); User user = expired != null && SecurityUtil.getSecurityService().canChangePassword() ? (User) expired .getExtraInformation() : null; String form = user != null ? ChangePasswordController.DIALOG_CHANGE_PASSWORD : LoginPaneController.DIALOG_LOGIN_PANE; Map<Object, Object> args = new HashMap<Object, Object>(); args.put("savedRequest", savedRequest); args.put("authError", authError); args.put("user", user); ZKUtil.loadZulPage(form, loginForm, args, this); getPage().setTitle(user != null ? "Change Password" : "Please Login"); resetTimer(); }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); ZKUtil.wireController(ZKUtil.loadZulPage(PARTICIPANT_SELECTOR, comp), this); broker = VistAUtil.getBrokerSession(); lstAllParticipants.setItemRenderer(new ParticipantRenderer()); lstAllParticipants.setModel(allParticipantsModel); lstEncounterParticipants.setItemRenderer(encounterParticipantRenderer); lstEncounterParticipants.setModel(encounterParticipantsModel); }
wireListener(ZKUtil.loadZulPage(form, loginForm, args)); getPage().setTitle(StrUtil.getLabel(title)); resetTimer();
/** * Creates a new container for the contents to be rendered by the drop provider. * * @param dropRoot The root component that will host the container. * @param cmpt Component rendered by the drop renderer. * @param title Title to be associated with the container. * @param actionListeners Listeners to be bound to the drop container (optional). */ private static DropContainer create(Component dropRoot, Component cmpt, String title, List<ActionListener> actionListeners) { DropContainer dc = (DropContainer) ZKUtil.loadZulPage(TEMPLATE, null); dc.actionListeners = actionListeners; dc.setTitle(title); dc.setDroppable(SCLASS); dc.setDraggable(SCLASS); dc.getPanelchildren().appendChild(cmpt); dc.moveToTop(dropRoot); ActionListener.bindActionListeners(dc, actionListeners); return dc; }
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(); } }