Example usage for com.vaadin.v7.client.ui VScrollTable ALIGN_CENTER

List of usage examples for com.vaadin.v7.client.ui VScrollTable ALIGN_CENTER

Introduction

In this page you can find the example usage for com.vaadin.v7.client.ui VScrollTable ALIGN_CENTER.

Prototype

char ALIGN_CENTER

To view the source code for com.vaadin.v7.client.ui VScrollTable ALIGN_CENTER.

Click Source Link

Usage

From source file:com.haulmont.cuba.web.widgets.client.aggregation.TableAggregationRow.java

License:Apache License

protected void setAlign(char align, final Element container) {
    // CAUTION: copied from VScrollTableRow
    switch (align) {
    case VScrollTable.ALIGN_CENTER:
        container.getStyle().setProperty("textAlign", "center");
        break;//  w ww  . j a  v  a2s.c om
    case VScrollTable.ALIGN_LEFT:
        container.getStyle().setProperty("textAlign", "left");
        break;
    case VScrollTable.ALIGN_RIGHT:
    default:
        container.getStyle().setProperty("textAlign", "right");
        break;
    }
}