syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skylar...@apache.org
Subject syncope git commit: [SYNCOPE-1242] Added 'title' html attribute to option elements in Palette Panel
Date Mon, 04 Dec 2017 09:11:51 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X 69e0c702d -> 7aeafedaf


[SYNCOPE-1242] Added 'title' html attribute to option elements in Palette Panel


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

Branch: refs/heads/2_0_X
Commit: 7aeafedaf8a209eaa00ad5a8bbd71328b592480c
Parents: 69e0c70
Author: skylark17 <matteo.alessandroni@tirasa.net>
Authored: Mon Dec 4 10:11:44 2017 +0100
Committer: skylark17 <matteo.alessandroni@tirasa.net>
Committed: Mon Dec 4 10:11:44 2017 +0100

----------------------------------------------------------------------
 .../wicket/markup/html/form/NonI18nPalette.java  | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/7aeafeda/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
----------------------------------------------------------------------
diff --git a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
index b705f59..c2313a5 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/wicket/markup/html/form/NonI18nPalette.java
@@ -19,6 +19,8 @@
 package org.apache.syncope.client.console.wicket.markup.html.form;
 
 import java.util.Collection;
+import java.util.LinkedHashMap;
+import java.util.Map;
 import org.apache.wicket.Component;
 import org.apache.wicket.extensions.markup.html.form.palette.Palette;
 import org.apache.wicket.markup.html.form.IChoiceRenderer;
@@ -50,5 +52,20 @@ public class NonI18nPalette<T> extends Palette<T> {
     @Override
     protected Component newSelectedHeader(final String componentId) {
         return super.newSelectedHeader(componentId);
-    }   
+    }
+
+    @Override
+    protected Map<String, String> getAdditionalAttributesForChoices(final Object choice)
{
+        Map<String, String> map = new LinkedHashMap<>();
+        map.put("title", choice.toString());
+        return map;
+    }
+
+    @Override
+    protected Map<String, String> getAdditionalAttributesForSelection(final Object
choice) {
+        Map<String, String> map = new LinkedHashMap<>();
+        map.put("title", choice.toString());
+        return map;
+    }
+
 }


Mime
View raw message