com.google.gwt.widgetideas.table.client
Class FixedWidthGrid.FixedWidthGridCellFormatter

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.overrides.HTMLTable.CellFormatter
      extended by com.google.gwt.widgetideas.table.client.SelectionGrid.SelectionGridCellFormatter
          extended by com.google.gwt.widgetideas.table.client.FixedWidthGrid.FixedWidthGridCellFormatter
Enclosing class:
FixedWidthGrid

public class FixedWidthGrid.FixedWidthGridCellFormatter
extends SelectionGrid.SelectionGridCellFormatter

This class contains methods used to format a table's cells.


Constructor Summary
FixedWidthGrid.FixedWidthGridCellFormatter()
           
 
Method Summary
protected  com.google.gwt.user.client.Element getRawElement(int row, int column)
          Gets the TD element representing the specified cell unsafely (meaning that it doesn't ensure that the row and column are valid).
 void setWidth(int row, int column, java.lang.String width)
          Sets the width of the specified cell.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable.CellFormatter
addStyleName, ensureElement, getAttr, getElement, getStyleName, getStylePrimaryName, isVisible, removeStyleName, setAlignment, setAttr, setHeight, setHorizontalAlignment, setStyleName, setStylePrimaryName, setVerticalAlignment, setVisible, setWordWrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedWidthGrid.FixedWidthGridCellFormatter

public FixedWidthGrid.FixedWidthGridCellFormatter()
Method Detail

setWidth

public void setWidth(int row,
                     int column,
                     java.lang.String width)
Description copied from class: HTMLTable.CellFormatter
Sets the width of the specified cell.

Overrides:
setWidth in class HTMLTable.CellFormatter
Parameters:
row - the row of the cell whose width is to be set
column - the cell whose width is to be set
width - the cell's new width, in CSS units

getRawElement

protected com.google.gwt.user.client.Element getRawElement(int row,
                                                           int column)
Description copied from class: HTMLTable.CellFormatter
Gets the TD element representing the specified cell unsafely (meaning that it doesn't ensure that the row and column are valid).

Overrides:
getRawElement in class SelectionGrid.SelectionGridCellFormatter
Parameters:
row - the row of the cell to be retrieved
column - the column of the cell to be retrieved
Returns:
the column's TD element