diff options
author | Olli Tietäväinen <ollit@vaadin.com> | 2018-11-14 13:48:43 +0200 |
---|---|---|
committer | Sun Zhe <31067185+ZheSun88@users.noreply.github.com> | 2018-12-04 10:34:50 +0200 |
commit | 0ae571811f79d05d599281bd1def73b9a39d11d6 (patch) | |
tree | 8fcc795ed3f01b1c182fd9d811c252a44bf5dce4 /compatibility-client/src | |
parent | 43ffcb8c1dbe8486986bd51d4c47c548d382fce0 (diff) | |
download | vaadin-framework-0ae571811f79d05d599281bd1def73b9a39d11d6.tar.gz vaadin-framework-0ae571811f79d05d599281bd1def73b9a39d11d6.zip |
formatting changes
Diffstat (limited to 'compatibility-client/src')
-rwxr-xr-x | compatibility-client/src/main/java/com/vaadin/v7/client/widgets/Grid.java | 10 |
1 files changed, 4 insertions, 6 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 3ef3adcc21..631f3bdb65 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 @@ -4046,7 +4046,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, private final class ColumnHider { /** Map from columns to their hiding toggles, component might change */ - private HashMap<Column<?, T>, MenuItem> columnToHidingToggleMap = new HashMap<Column<?, T>, MenuItem>(); + private Map<Column<?, T>, MenuItem> columnToHidingToggleMap = new HashMap<Column<?, T>, MenuItem>(); /** * When column is being hidden with a toggle, do not refresh toggles for @@ -4491,7 +4491,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, reordered.addAll(columns.subList( draggedColumnIndex + colspan, columns.size())); } - // since setColumnOrder will // add it anyway! + // since setColumnOrder will add it anyway! reordered.remove(selectionColumn); // capture focused cell column before reorder @@ -6649,7 +6649,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, * @return A unmodifiable list of the currently visible columns in the grid */ public List<Column<?, T>> getVisibleColumns() { - ArrayList<Column<?, T>> visible = new ArrayList<Column<?, T>>(); + List<Column<?, T>> visible = new ArrayList<Column<?, T>>(); for (Column<?, T> c : columns) { if (!c.isHidden()) { visible.add(c); @@ -9179,9 +9179,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>, if (visible && !isVisible) { escalator.getBody().setSpacer(rowIndex, DETAILS_ROW_INITIAL_HEIGHT); visibleDetails.add(rowIndexInteger); - } - - else if (!visible && isVisible) { + } else if (!visible && isVisible) { escalator.getBody().setSpacer(rowIndex, -1); visibleDetails.remove(rowIndexInteger); } |