diff options
author | John Ahlroos <john@vaadin.com> | 2013-12-17 12:04:32 +0200 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2013-12-17 12:04:32 +0200 |
commit | 15865e1d19c5bb5335f03400eb44a8876b3ab7e7 (patch) | |
tree | ebdee91f225453394ba1ffecb8f61dd09b4a70fb | |
parent | 7670a020c7447d7ae2fe2c3e1fb1fa966b138e65 (diff) | |
download | vaadin-framework-15865e1d19c5bb5335f03400eb44a8876b3ab7e7.tar.gz vaadin-framework-15865e1d19c5bb5335f03400eb44a8876b3ab7e7.zip |
Added missing constructors to GridColumn #12830
Change-Id: Ia45dc7583fa62d87d18ea78a1f86c0a26ea6d3da
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/Grid.java | 3 | ||||
-rw-r--r-- | client/src/com/vaadin/client/ui/grid/GridColumn.java | 17 |
2 files changed, 18 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/grid/Grid.java b/client/src/com/vaadin/client/ui/grid/Grid.java index 7f8ab408a9..015028765b 100644 --- a/client/src/com/vaadin/client/ui/grid/Grid.java +++ b/client/src/com/vaadin/client/ui/grid/Grid.java @@ -110,8 +110,7 @@ public class Grid<T> extends Composite { * @param <T> * the row type */ - public static abstract class AbstractGridColumn<C, T> implements - HasVisibility { + static abstract class AbstractGridColumn<C, T> implements HasVisibility { /** * The grid the column is associated with diff --git a/client/src/com/vaadin/client/ui/grid/GridColumn.java b/client/src/com/vaadin/client/ui/grid/GridColumn.java index ad74a008b9..afd80a5f5a 100644 --- a/client/src/com/vaadin/client/ui/grid/GridColumn.java +++ b/client/src/com/vaadin/client/ui/grid/GridColumn.java @@ -34,4 +34,21 @@ public abstract class GridColumn<C, T> extends Grid.AbstractGridColumn<C, T> { * Grid.AbstractGridColumn in your production code. The real implementation * should be in the abstract class. */ + + /** + * Constructs a new column. + */ + public GridColumn() { + super(); + } + + /** + * Constructs a new column with a custom renderer. + * + * @param renderer + * The renderer to use for rendering the cells + */ + public GridColumn(Renderer<C> renderer) { + super(renderer); + } } |