syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [09/20] syncope git commit: [SYNCOPE-868] provides button bar for template report creation modal + refresh for report templates table
Date Wed, 08 Jun 2016 15:58:45 GMT
[SYNCOPE-868] provides button bar for template report creation modal + refresh for report templates
table


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/bee58eab
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/bee58eab
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/bee58eab

Branch: refs/heads/SYNCOPE-862
Commit: bee58eabedf163d145b41fd44528975235a54bbc
Parents: d36a754
Author: fmartelli <fabio.martelli@gmail.com>
Authored: Mon Jun 6 12:37:32 2016 +0200
Committer: fmartelli <fabio.martelli@gmail.com>
Committed: Mon Jun 6 14:22:35 2016 +0200

----------------------------------------------------------------------
 .../reports/ReportTemplateDirectoryPanel.java       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/bee58eab/client/console/src/main/java/org/apache/syncope/client/console/reports/ReportTemplateDirectoryPanel.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/reports/ReportTemplateDirectoryPanel.java
b/client/console/src/main/java/org/apache/syncope/client/console/reports/ReportTemplateDirectoryPanel.java
index 93aad9f..f8e3354 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/reports/ReportTemplateDirectoryPanel.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/reports/ReportTemplateDirectoryPanel.java
@@ -56,6 +56,7 @@ import org.apache.syncope.client.console.panels.WizardModalPanel;
 import org.apache.syncope.client.console.reports.ReportTemplateDirectoryPanel.ReportTemplateProvider;
 import org.apache.syncope.client.console.rest.ReportRestClient;
 import org.apache.syncope.common.lib.types.ReportTemplateFormat;
+import org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow;
 
 public class ReportTemplateDirectoryPanel
         extends DirectoryPanel<ReportTemplateTO, ReportTemplateTO, ReportTemplateProvider,
ReportRestClient> {
@@ -68,6 +69,21 @@ public class ReportTemplateDirectoryPanel
         super(id, pageReference, true);
         disableCheckBoxes();
 
+        modal.size(Modal.Size.Small);
+        modal.addSubmitButton();
+        setFooterVisibility(true);
+        
+        modal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() {
+
+            private static final long serialVersionUID = 8804221891699487139L;
+
+            @Override
+            public void onClose(final AjaxRequestTarget target) {
+                updateResultTable(target);
+                modal.show(false);
+            }
+        });
+
         addOuterObject(utilityModal);
         setWindowClosedReloadCallback(utilityModal);
         utilityModal.size(Modal.Size.Large);


Mime
View raw message