diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2016-12-22 16:04:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 16:04:48 +0200 |
commit | 7143ac15789848269d00024ed9dc68b77402fbb9 (patch) | |
tree | 537320ff40f8a853b7f634ca51d8c79b5ebea7ee | |
parent | e54256fe0919aeedfa4663879be5963e9b857114 (diff) | |
download | vaadin-framework-7143ac15789848269d00024ed9dc68b77402fbb9.tar.gz vaadin-framework-7143ac15789848269d00024ed9dc68b77402fbb9.zip |
Remove unused caption from Column constructor (#8077)
* Remove unused caption from Column constructor
Fixes #8063
-rw-r--r-- | server/src/main/java/com/vaadin/ui/Grid.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/src/main/java/com/vaadin/ui/Grid.java b/server/src/main/java/com/vaadin/ui/Grid.java index 8b07501f07..592a811f21 100644 --- a/server/src/main/java/com/vaadin/ui/Grid.java +++ b/server/src/main/java/com/vaadin/ui/Grid.java @@ -796,8 +796,7 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, * @param renderer * the type of value */ - protected Column(String caption, - ValueProvider<T, ? extends V> valueProvider, + protected Column(ValueProvider<T, ? extends V> valueProvider, Renderer<V> renderer) { Objects.requireNonNull(valueProvider, "Value provider can't be null"); @@ -1882,8 +1881,7 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, ValueProvider<T, ? extends V> valueProvider, AbstractRenderer<? super T, V> renderer) { String generatedIdentifier = getGeneratedIdentifier(); - Column<T, V> column = new Column<>("Column " + generatedIdentifier, - valueProvider, renderer); + Column<T, V> column = new Column<>(valueProvider, renderer); addColumn(generatedIdentifier, column); return column; } @@ -3023,7 +3021,7 @@ public class Grid<T> extends AbstractListing<T> implements HasComponents, String id = DesignAttributeHandler.readAttribute("column-id", col.attributes(), null, String.class); DeclarativeValueProvider<T> provider = new DeclarativeValueProvider<>(); - Column<T, String> column = new Column<>("", provider, + Column<T, String> column = new Column<>(provider, new HtmlRenderer()); addColumn(getGeneratedIdentifier(), column); if (id != null) { |