diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-22 12:23:12 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-22 13:23:12 +0300 |
commit | 60ff3d6c3428b2e353ecc0df90296cecc3e840e0 (patch) | |
tree | a88cd5b672417440f57ec786b3c2c3c2bdac6adb /compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java | |
parent | 23718371f820fb3babca2c57072a62137aa2c01d (diff) | |
download | vaadin-framework-60ff3d6c3428b2e353ecc0df90296cecc3e840e0.tar.gz vaadin-framework-60ff3d6c3428b2e353ecc0df90296cecc3e840e0.zip |
Format curly brackets correctly for checkstyle (#10066)
Diffstat (limited to 'compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java')
-rw-r--r-- | compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java index ee38b2bcb3..dac43ba923 100644 --- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java +++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java @@ -2928,13 +2928,12 @@ public class Table extends AbstractSelect implements Action.Container, // TODO could be optimized. variables = new HashMap<String, Object>(variables); variables.remove("selected"); - } - - /* - * The AbstractSelect cannot handle the multiselection properly, instead - * we handle it ourself - */ - else if (isSelectable() && isMultiSelect() + } else if ( + /* + * The AbstractSelect cannot handle the multiselection properly, instead + * we handle it ourself + */ + isSelectable() && isMultiSelect() && variables.containsKey("selected") && multiSelectMode == MultiSelectMode.DEFAULT) { handleSelectedItems(variables); @@ -3128,10 +3127,9 @@ public class Table extends AbstractSelect implements Action.Container, fireEvent(new ItemClickEvent(this, item, itemId, propertyId, evt)); } - } - - // Header click event - else if (variables.containsKey("headerClickEvent")) { + } else if ( + // Header click event + variables.containsKey("headerClickEvent")) { MouseEventDetails details = MouseEventDetails .deSerialize((String) variables.get("headerClickEvent")); @@ -3142,10 +3140,9 @@ public class Table extends AbstractSelect implements Action.Container, propertyId = columnIdMap.get(cid.toString()); } fireEvent(new HeaderClickEvent(this, propertyId, details)); - } - - // Footer click event - else if (variables.containsKey("footerClickEvent")) { + } else if ( + // Footer click event + variables.containsKey("footerClickEvent")) { MouseEventDetails details = MouseEventDetails .deSerialize((String) variables.get("footerClickEvent")); |