diff options
author | Denis Anisimov <denis@vaadin.com> | 2016-10-26 16:22:00 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-10-31 11:55:10 +0000 |
commit | 9c88657db52d73f6dd8b976ce0d4cada643b2a4d (patch) | |
tree | fde7408221abc7b25379cba078e2d92d59163526 /compatibility-client | |
parent | bcd7259e1092badf9abc6aa2146decdcc4611f14 (diff) | |
download | vaadin-framework-9c88657db52d73f6dd8b976ce0d4cada643b2a4d.tar.gz vaadin-framework-9c88657db52d73f6dd8b976ce0d4cada643b2a4d.zip |
Implement focus and blur events for CheckBoxGroup.
Fixes vaadin/framework8-issues#334
Change-Id: I4c7ca424cc4f4a1f0cdecd7671827465ab74ace7
Diffstat (limited to 'compatibility-client')
-rw-r--r-- | compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java index b67edfe93c..d4e1869a90 100644 --- a/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java +++ b/compatibility-client/src/main/java/com/vaadin/v7/client/ui/VOptionGroup.java @@ -95,8 +95,8 @@ public class VOptionGroup extends VOptionGroupBase public VOptionGroup() { super(CLASSNAME); panel = (Panel) optionsContainer; - optionsToKeys = new HashMap<CheckBox, String>(); - optionsEnabled = new HashMap<CheckBox, Boolean>(); + optionsToKeys = new HashMap<>(); + optionsEnabled = new HashMap<>(); wasMultiselect = isMultiselect(); } @@ -113,12 +113,12 @@ public class VOptionGroup extends VOptionGroupBase * rebuilt (losing focus) if number of elements or their order is * changed. */ - HashMap<String, CheckBox> keysToOptions = new HashMap<String, CheckBox>(); + HashMap<String, CheckBox> keysToOptions = new HashMap<>(); for (Map.Entry<CheckBox, String> entry : optionsToKeys.entrySet()) { keysToOptions.put(entry.getValue(), entry.getKey()); } - ArrayList<Widget> existingwidgets = new ArrayList<Widget>(); - ArrayList<Widget> newwidgets = new ArrayList<Widget>(); + ArrayList<Widget> existingwidgets = new ArrayList<>(); + ArrayList<Widget> newwidgets = new ArrayList<>(); // Get current order of elements for (Widget wid : panel) { |