aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-27 12:44:25 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-27 13:44:25 +0300
commit9e6490d32a024333032b080efc7ba2d815c6eeed (patch)
tree39c3727bd3e5349d3a5967c4a645e8f395e5e69e /compatibility-server/src/main/java/com/vaadin/v7/ui/Table.java
parent9f9efe0058397992fda43e104c90b79039d41c0f (diff)
downloadvaadin-framework-9e6490d32a024333032b080efc7ba2d815c6eeed.tar.gz
vaadin-framework-9e6490d32a024333032b080efc7ba2d815c6eeed.zip
Fix typos (#10095)
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.java29
1 files changed, 15 insertions, 14 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 dac43ba923..82dc65774c 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
@@ -151,7 +151,7 @@ public class Table extends AbstractSelect implements Action.Container,
@Deprecated
public enum Align {
/**
- * Left column alignment. <b>This is the default behaviour. </b>
+ * Left column alignment. <b>This is the default behavior. </b>
*/
LEFT("b"),
@@ -2282,7 +2282,8 @@ public class Table extends AbstractSelect implements Action.Container,
}
GeneratedRow generatedRow = rowGenerator != null
- ? rowGenerator.generateRow(this, id) : null;
+ ? rowGenerator.generateRow(this, id)
+ : null;
cells[CELL_GENERATED_ROW][i] = generatedRow;
for (int j = 0; j < cols; j++) {
@@ -2929,12 +2930,11 @@ public class Table extends AbstractSelect implements Action.Container,
variables = new HashMap<String, Object>(variables);
variables.remove("selected");
} else if (
- /*
- * The AbstractSelect cannot handle the multiselection properly, instead
- * we handle it ourself
- */
- isSelectable() && isMultiSelect()
- && variables.containsKey("selected")
+ /*
+ * The AbstractSelect cannot handle the multiselection properly, instead
+ * we handle it ourself
+ */
+ isSelectable() && isMultiSelect() && variables.containsKey("selected")
&& multiSelectMode == MultiSelectMode.DEFAULT) {
handleSelectedItems(variables);
variables = new HashMap<String, Object>(variables);
@@ -3128,8 +3128,8 @@ public class Table extends AbstractSelect implements Action.Container,
evt));
}
} else if (
- // Header click event
- variables.containsKey("headerClickEvent")) {
+ // Header click event
+ variables.containsKey("headerClickEvent")) {
MouseEventDetails details = MouseEventDetails
.deSerialize((String) variables.get("headerClickEvent"));
@@ -3141,8 +3141,8 @@ public class Table extends AbstractSelect implements Action.Container,
}
fireEvent(new HeaderClickEvent(this, propertyId, details));
} else if (
- // Footer click event
- variables.containsKey("footerClickEvent")) {
+ // Footer click event
+ variables.containsKey("footerClickEvent")) {
MouseEventDetails details = MouseEventDetails
.deSerialize((String) variables.get("footerClickEvent"));
@@ -3516,8 +3516,9 @@ public class Table extends AbstractSelect implements Action.Container,
target.addAttribute("cols", getVisibleColumns().length);
target.addAttribute("rows", rows);
- target.addAttribute("firstrow", (reqFirstRowToPaint >= 0
- ? reqFirstRowToPaint : firstToBeRenderedInClient));
+ target.addAttribute("firstrow",
+ (reqFirstRowToPaint >= 0 ? reqFirstRowToPaint
+ : firstToBeRenderedInClient));
target.addAttribute("totalrows", total);
if (getPageLength() != 0) {
target.addAttribute("pagelength", getPageLength());