com.vaadin.client.ui.grid
Class FlyweightCell

java.lang.Object
  extended by com.vaadin.client.ui.grid.FlyweightCell

public class FlyweightCell
extends java.lang.Object

A FlyweightCell represents a cell in the Grid or Escalator at a certain point in time.

Since the FlyweightCell follows the Flyweight-pattern any instance of this object is subject to change without the user knowing it and so should not be stored anywhere outside of the method providing these instances.

Since:
Author:
Vaadin Ltd

Constructor Summary
FlyweightCell(com.vaadin.client.ui.grid.FlyweightRow row, int column)
           
 
Method Summary
 int getColSpan()
          Return the colspan attribute of the element of the cell.
 int getColumn()
          Returns the column index of the cell
 TableCellElement getElement()
          Returns the element of the cell.
 int getRow()
          Returns the row index of the cell
 void setColSpan(int numberOfCells)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlyweightCell

public FlyweightCell(com.vaadin.client.ui.grid.FlyweightRow row,
                     int column)
Method Detail

getRow

public int getRow()
Returns the row index of the cell


getColumn

public int getColumn()
Returns the column index of the cell


getElement

public TableCellElement getElement()
Returns the element of the cell. Can be either a TD element or a TH element.


getColSpan

public int getColSpan()
Return the colspan attribute of the element of the cell.


setColSpan

public void setColSpan(int numberOfCells)


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.