Example usage for com.google.gwt.dom.client TableCellElement setPropertyInt

List of usage examples for com.google.gwt.dom.client TableCellElement setPropertyInt

Introduction

In this page you can find the example usage for com.google.gwt.dom.client TableCellElement setPropertyInt.

Prototype

@Override
    public void setPropertyInt(String name, int value) 

Source Link

Usage

From source file:com.vaadin.client.widget.escalator.FlyweightCell.java

License:Apache License

void setup(final CellIterator iterator) {
    currentIterator = iterator;// w  ww. ja  v a  2 s  .  co  m

    if (iterator.areCellsAttached()) {
        final TableCellElement e = row.getElement().getCells().getItem(column);

        assert e != null : "Cell " + column + " for logical row " + row.getRow() + " doesn't exist in the DOM!";

        e.setPropertyInt(COLSPAN_ATTR, 1);
        if (row.getColumnWidth(column) >= 0) {
            e.getStyle().setWidth(row.getColumnWidth(column), Unit.PX);
        }
        e.getStyle().clearDisplay();
        setElement(e);
    }
}