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

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

Introduction

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

Prototype

char ALIGN_RIGHT

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

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;/*from  ww  w .ja  v a 2  s  .com*/
    case VScrollTable.ALIGN_LEFT:
        container.getStyle().setProperty("textAlign", "left");
        break;
    case VScrollTable.ALIGN_RIGHT:
    default:
        container.getStyle().setProperty("textAlign", "right");
        break;
    }
}