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,
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) {
/**
* Backing property for column
*/
- private final Object columnProperty;
+ private final Object propertyId;
private Converter<?, Object> converter;
* 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());
}
*
* @return property id
*/
- public Object getColumnProperty() {
- return columnProperty;
+ public Object getPropertyId() {
+ return propertyId;
}
/**
editedItemId = itemId;
for (Column column : getColumns()) {
- Object propertyId = column.getColumnProperty();
+ Object propertyId = column.getPropertyId();
Field<?> editor = getEditorField(propertyId);
double minimumWidth = Math.round(column.getMinimumWidth() * 100) / 100;
double maximumWidth = Math.round(column.getMaximumWidth() * 100) / 100;
double width = Math.round(column.getWidth() * 100) / 100;
- Object propertyId = column.getColumnProperty();
+ Object propertyId = column.getPropertyId();
label.setValue(String.format(
"[%s] Expand ratio: %s - min: %s - max: %s - width: %s",
propertyId, expandRatio, minimumWidth, maximumWidth, width));