Example usage for com.vaadin.v7.data.sort SortOrder getPropertyId

List of usage examples for com.vaadin.v7.data.sort SortOrder getPropertyId

Introduction

In this page you can find the example usage for com.vaadin.v7.data.sort SortOrder getPropertyId.

Prototype

public Object getPropertyId() 

Source Link

Document

Returns the property ID.

Usage

From source file:com.haulmont.cuba.web.widgets.renderers.componentrenderer.grid.ComponentPropertyGenerator.java

License:Apache License

/**
 * Checks if the generated property hides an existing property of the bean.
 * If that's the case the underlying bean-property can be used for sorting.
 *
 * @param order the sort-order//from   www . j  av a 2s  .  c om
 * @return true when the property of the column to be sorted hides a bean-field, false otherwise
 */
private boolean hidesBeanField(SortOrder order) {
    return typeOfRows != null && typeHasProperty((String) order.getPropertyId());
}