summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlli Tietäväinen <ollit@vaadin.com>2018-11-13 16:11:14 +0200
committerSun Zhe <31067185+ZheSun88@users.noreply.github.com>2018-12-04 10:34:50 +0200
commitb39b875986acacdaebcbec27688e4c7cc5df23f1 (patch)
tree37b838500327cdebd7c697f1286f566116dd688b
parente627b465872fa51df470f304447c651aaf0e7477 (diff)
downloadvaadin-framework-b39b875986acacdaebcbec27688e4c7cc5df23f1.tar.gz
vaadin-framework-b39b875986acacdaebcbec27688e4c7cc5df23f1.zip
formatting changes
-rwxr-xr-xcompatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
index 2d0774f3ec..055fcaef20 100755
--- a/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
+++ b/compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java
@@ -1770,10 +1770,10 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
* if the editor handler is not set
*/
public void setEnabled(boolean enabled) {
- if (enabled == false && state != State.INACTIVE) {
+ if (!enabled && state != State.INACTIVE) {
throw new IllegalStateException(
"Cannot disable: editor is in edit mode");
- } else if (enabled == true && getHandler() == null) {
+ } else if (enabled && getHandler() == null) {
throw new IllegalStateException(
"Cannot enable: EditorHandler not set");
}
@@ -4491,8 +4491,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
reordered.addAll(columns.subList(
draggedColumnIndex + colspan, columns.size()));
}
- reordered.remove(selectionColumn); // since setColumnOrder will
- // add it anyway!
+ // since setColumnOrder will // add it anyway!
+ reordered.remove(selectionColumn);
// capture focused cell column before reorder
Cell focusedCell = cellFocusHandler.getFocusedCell();
@@ -4646,9 +4646,8 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
rightBound = cellColumnRightIndex;
}
cellColumnIndex = cellColumnRightIndex - 1;
- }
-
- else { // can't drop inside a spanned cell, or this is the
+ } else {
+ // can't drop inside a spanned cell, or this is the
// dragged cell
while (colspan > 1) {
cellColumnIndex++;