Example usage for com.vaadin.client UIDL getChildString

List of usage examples for com.vaadin.client UIDL getChildString

Introduction

In this page you can find the example usage for com.vaadin.client UIDL getChildString.

Prototype

public native String getChildString(int i)
;

Source Link

Document

Gets the child at the given index as a String.

Usage

From source file:org.vaadin.tltv.multiscrolltable.client.ui.DefaultRowContainer.java

License:Apache License

@Override
public Row createRow(int rowIndex, UIDL rowUidl) {
    Row row = getRow(rowIndex);/*from  w w w. j  a va  2  s  .  co m*/

    int actualColIndex = 0;
    int startIndex = headerContainer.getFirstColIndexForRowsUidl();
    for (int colIndex = startIndex; colIndex < (startIndex
            + headerContainer.getColumnCount()); colIndex++, actualColIndex++) {
        UIDL columnUIDL = rowUidl.getChildUIDL(colIndex);

        Cell cell = getCell(actualColIndex, row);

        cell.setValue(columnUIDL.getChildString(0));
    }
    return row;
}