@Override public void onClose(final AjaxRequestTarget target) { modal.show(false); } });
@Override public void onClose(final AjaxRequestTarget target) { modalDetails.show(false); target.add(container); } });
@Override public void onClose(final AjaxRequestTarget target) { updateResultTable(target); modal.show(false); } });
@Override public void onClose(final AjaxRequestTarget target) { updateResultTable(target); modal.show(false); } });
@Override public void onClose(final AjaxRequestTarget target) { updateResultTable(target); modal.show(false); } });
@Override public void onClose(final AjaxRequestTarget target) { target.add(content); templateModal.show(false); } });
@Override public void onClose(final AjaxRequestTarget target) { implementation.setEngine(null); updateResultTable(target); modal.show(false); } });
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onEvent(final IEvent<?> event) { super.onEvent(event); if (event.getPayload() instanceof ExitEvent && modal != null) { final AjaxRequestTarget target = ExitEvent.class.cast(event.getPayload()).getTarget(); baseModal.show(false); baseModal.close(target); } } }
@Override public void onClick(final AjaxRequestTarget target) { String connKey = String.class.cast(node.getKey()); ConnInstanceTO connInstance = connectorRestClient.read(connKey); target.add(historyModal.setContent( new HistoryConfList<>(historyModal, connKey, pageRef, connInstance))); historyModal.header( new Model<>(MessageFormat.format(getString("connector.menu.history"), node.getDisplayName()))); historyModal.show(true); }
@Override public void onClick(final AjaxRequestTarget target) { target.add(schedTaskModal.setContent(new PushTasks(schedTaskModal, pageRef, node.getKey()))); schedTaskModal.header(new Model<>(MessageFormat.format(getString("task.push.list"), node.getKey()))); schedTaskModal.show(true); }
@Override public void onClick(final AjaxRequestTarget target, final RemediationTO ignore) { modal.header(new ResourceModel("error")); modal.setContent(new ExecMessageModal(model.getObject().getError())); modal.show(true); target.add(modal); } }, ActionLink.ActionType.VIEW_DETAILS, StandardEntitlement.REMEDIATION_READ);
@Override public void onClick(final AjaxRequestTarget target, final AnyObjectTO ignore) { target.add(utilityModal.setContent(new AnyPropagationTasks( utilityModal, AnyTypeKind.ANY_OBJECT, model.getObject().getKey(), pageRef))); utilityModal.header(new StringResourceModel("any.propagation.tasks", model)); utilityModal.show(true); } }, ActionType.PROPAGATION_TASKS, StandardEntitlement.TASK_LIST);
@Override public void onClick(final AjaxRequestTarget target, final GroupTO ignore) { target.add(utilityModal.setContent( new NotificationTasks(AnyTypeKind.GROUP, model.getObject().getKey(), pageRef))); utilityModal.header(new StringResourceModel("any.notification.tasks", model)); utilityModal.show(true); } }, ActionType.NOTIFICATION_TASKS, StandardEntitlement.TASK_LIST);
@Override public void onClick(final AjaxRequestTarget target, final ReportTO ignore) { target.add(modal.setContent(new ReportletDirectoryPanel( modal, model.getObject().getKey(), pageRef))); modal.header(new StringResourceModel( "reportlet.conf", ReportDirectoryPanel.this, Model.of(model.getObject()))); MetaDataRoleAuthorizationStrategy.authorize( modal.getForm(), ENABLE, StandardEntitlement.RESOURCE_UPDATE); modal.show(true); } }, ActionLink.ActionType.COMPOSE, StandardEntitlement.REPORT_UPDATE);
@Override public void onClick(final AjaxRequestTarget target, final AnyObjectTO ignore) { target.add(utilityModal.setContent( new NotificationTasks(AnyTypeKind.ANY_OBJECT, model.getObject().getKey(), pageRef))); utilityModal.header(new StringResourceModel("any.notification.tasks", model)); utilityModal.show(true); target.add(utilityModal); } }, ActionType.NOTIFICATION_TASKS, StandardEntitlement.TASK_LIST);
@Override public void onClick(final AjaxRequestTarget target, final ReportTemplateTO ignore) { TemplateContent<ReportTemplateFormat> content = new TemplateContent<>(model.getObject().getKey(), ReportTemplateFormat.FO); content.setContent( restClient.readTemplateFormat(model.getObject().getKey(), ReportTemplateFormat.FO)); utilityModal.header(new ResourceModel("report.template.fo", "XSLT for XSL-FO")); utilityModal.setContent(new TemplateContentEditorPanel(content, pageRef)); utilityModal.show(true); target.add(utilityModal); } }, ActionLink.ActionType.FO_EDIT, StandardEntitlement.MAIL_TEMPLATE_UPDATE);
@Override public void onClick(final AjaxRequestTarget target) { final ResourceTO modelObject = new ResourceTO(); modelObject.setConnector(String.class.cast(node.getKey())); modelObject.setConnectorDisplayName(node.getDisplayName()); final IModel<ResourceTO> model = new CompoundPropertyModel<>(modelObject); modal.setFormModel(model); target.add(modal.setContent(new ResourceWizardBuilder(modelObject, pageRef). build(BaseModal.CONTENT_ID, AjaxWizard.Mode.CREATE))); modal.header(new Model<>(MessageFormat.format(getString("resource.new"), node.getKey()))); modal.show(true); }
@Override public void onClick(final AjaxRequestTarget target) { final ConnInstanceTO modelObject = new ConnInstanceTO(); modelObject.setLocation(node.getKey()); final IModel<ConnInstanceTO> model = new CompoundPropertyModel<>(modelObject); modal.setFormModel(model); target.add(modal.setContent(new ConnectorWizardBuilder(modelObject, pageRef). build(BaseModal.CONTENT_ID, AjaxWizard.Mode.CREATE))); modal.header(new Model<>(MessageFormat.format(getString("connector.new"), node.getKey()))); modal.show(true); }
@Override public void onClick(final AjaxRequestTarget target) { modal.header(new StringResourceModel("any.new")); modal.setContent(new DynRealmModalPanel(new DynRealmWrapper(new DynRealmTO()), true, modal, pageRef)); modal.show(true); target.add(modal); } };