summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPatrik Lindström <patrik@vaadin.com>2013-07-30 14:14:07 +0300
committerVaadin Code Review <review@vaadin.com>2013-07-30 12:49:49 +0000
commit59a043b3b06f516c59c07577c9416a69b6962bfe (patch)
treeefa41eb2c35aab9f6750ba619cb5a74d6881cf2f /server
parent44aacf471be2f1846607194af98b795e2247a600 (diff)
downloadvaadin-framework-59a043b3b06f516c59c07577c9416a69b6962bfe.tar.gz
vaadin-framework-59a043b3b06f516c59c07577c9416a69b6962bfe.zip
Fix actions in action menu appearing in random order #12250
Change-Id: I77186adb94392cd317d37b9d9250f28891e6f06e
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/Calendar.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/com/vaadin/ui/Calendar.java b/server/src/com/vaadin/ui/Calendar.java
index 8b8cc7b475..9ccc8ea2d9 100644
--- a/server/src/com/vaadin/ui/Calendar.java
+++ b/server/src/com/vaadin/ui/Calendar.java
@@ -26,7 +26,7 @@ import java.util.Date;
import java.util.EventListener;
import java.util.GregorianCalendar;
import java.util.HashMap;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
@@ -573,7 +573,7 @@ public class Calendar extends AbstractComponent implements
CalendarDateRange range = new CalendarDateRange(s, e, getTimeZone());
Action[] actions = actionHandler.getActions(range, this);
if (actions != null) {
- Set<Action> actionSet = new HashSet<Action>(
+ Set<Action> actionSet = new LinkedHashSet<Action>(
Arrays.asList(actions));
actionMap.put(range, actionSet);
}
@@ -587,7 +587,8 @@ public class Calendar extends AbstractComponent implements
getTimeZone());
Action[] actions = actionHandler.getActions(range, this);
if (actions != null) {
- Set<Action> actionSet = new HashSet<Action>(Arrays.asList(actions));
+ Set<Action> actionSet = new LinkedHashSet<Action>(
+ Arrays.asList(actions));
actionMap.put(range, actionSet);
}
}
@@ -1872,4 +1873,4 @@ public class Calendar extends AbstractComponent implements
dropHandler.getAcceptCriterion().paint(target);
}
}
-} \ No newline at end of file
+}