diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-01-07 15:58:40 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-07 16:36:48 +0000 |
commit | 20ed8b863d24f48afab5d510f5caf1fbdadeeb19 (patch) | |
tree | a4fa45fa2694f3411b9acb008767d4b702091beb /server/src | |
parent | ab6cb8ed35a1b5f1d301d359e75e9e0e4f758f24 (diff) | |
download | vaadin-framework-20ed8b863d24f48afab5d510f5caf1fbdadeeb19.tar.gz vaadin-framework-20ed8b863d24f48afab5d510f5caf1fbdadeeb19.zip |
Change getColumnProperty to getPropertyId in Grid Column (#15512)
Change-Id: I89a8ccbb918301abed66adcb0d6246c8db0585a5
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/data/RpcDataProviderExtension.java | 4 | ||||
-rw-r--r-- | server/src/com/vaadin/ui/Grid.java | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/server/src/com/vaadin/data/RpcDataProviderExtension.java b/server/src/com/vaadin/data/RpcDataProviderExtension.java index 2b3e00e6f0..c968cb1888 100644 --- a/server/src/com/vaadin/data/RpcDataProviderExtension.java +++ b/server/src/com/vaadin/data/RpcDataProviderExtension.java @@ -762,7 +762,7 @@ public class RpcDataProviderExtension extends AbstractExtension { Grid grid = getGrid(); for (Column column : columns) { - Object propertyId = column.getColumnProperty(); + Object propertyId = column.getPropertyId(); Object propertyValue = item.getItemProperty(propertyId).getValue(); JsonValue encodedValue = encodeValue(propertyValue, @@ -794,7 +794,7 @@ public class RpcDataProviderExtension extends AbstractExtension { JsonObject rowObject, Collection<Column> columns) { JsonObject cellStyles = null; for (Column column : columns) { - Object propertyId = column.getColumnProperty(); + Object propertyId = column.getPropertyId(); cellReference.set(propertyId); String style = generator.getStyle(cellReference); if (style != null) { diff --git a/server/src/com/vaadin/ui/Grid.java b/server/src/com/vaadin/ui/Grid.java index d61458297a..5b29d1f10b 100644 --- a/server/src/com/vaadin/ui/Grid.java +++ b/server/src/com/vaadin/ui/Grid.java @@ -1781,7 +1781,7 @@ public class Grid extends AbstractComponent implements SelectionNotifier, /** * Backing property for column */ - private final Object columnProperty; + private final Object propertyId; private Converter<?, Object> converter; @@ -1799,13 +1799,13 @@ public class Grid extends AbstractComponent implements SelectionNotifier, * The grid this column belongs to. Should not be null. * @param state * the shared state of this column - * @param columnProperty + * @param propertyId * the backing property id for this column */ - Column(Grid grid, GridColumnState state, Object columnProperty) { + Column(Grid grid, GridColumnState state, Object propertyId) { this.grid = grid; this.state = state; - this.columnProperty = columnProperty; + this.propertyId = propertyId; internalSetRenderer(new TextRenderer()); } @@ -1824,8 +1824,8 @@ public class Grid extends AbstractComponent implements SelectionNotifier, * * @return property id */ - public Object getColumnProperty() { - return columnProperty; + public Object getPropertyId() { + return propertyId; } /** @@ -4387,7 +4387,7 @@ public class Grid extends AbstractComponent implements SelectionNotifier, editedItemId = itemId; for (Column column : getColumns()) { - Object propertyId = column.getColumnProperty(); + Object propertyId = column.getPropertyId(); Field<?> editor = getEditorField(propertyId); |