com.google.gwt.widgetideas.table.client
Class FixedWidthFlexTable.FixedWidthFlexCellFormatter

java.lang.Object
  extended by com.google.gwt.widgetideas.table.client.overrides.HTMLTable.CellFormatter
      extended by com.google.gwt.widgetideas.table.client.overrides.FlexTable.FlexCellFormatter
          extended by com.google.gwt.widgetideas.table.client.FixedWidthFlexTable.FixedWidthFlexCellFormatter
Enclosing class:
FixedWidthFlexTable

public class FixedWidthFlexTable.FixedWidthFlexCellFormatter
extends FlexTable.FlexCellFormatter

FlexTable-specific implementation of HTMLTable.CellFormatter.


Constructor Summary
FixedWidthFlexTable.FixedWidthFlexCellFormatter()
           
 
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 setColSpan(int row, int column, int colSpan)
          Sets the column span for the given cell.
 void setRowSpan(int row, int column, int rowSpan)
          Sets the row span for the given cell.
 void setWidth(int row, int column, java.lang.String width)
          UnsupportedOperation.
 
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.FlexTable.FlexCellFormatter
getColSpan, getRowSpan
 
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

FixedWidthFlexTable.FixedWidthFlexCellFormatter

public FixedWidthFlexTable.FixedWidthFlexCellFormatter()
Method Detail

setColSpan

public void setColSpan(int row,
                       int column,
                       int colSpan)
Sets the column span for the given cell. This is the number of logical columns covered by the cell.

Overrides:
setColSpan in class FlexTable.FlexCellFormatter
Parameters:
row - the cell's row
column - the cell's column
colSpan - the cell's column span
Throws:
java.lang.IndexOutOfBoundsException

setRowSpan

public void setRowSpan(int row,
                       int column,
                       int rowSpan)
Sets the row span for the given cell. This is the number of logical rows covered by the cell.

Overrides:
setRowSpan in class FlexTable.FlexCellFormatter
Parameters:
row - the cell's row
column - the cell's column
rowSpan - the cell's row span
Throws:
java.lang.IndexOutOfBoundsException

setWidth

public void setWidth(int row,
                     int column,
                     java.lang.String width)
UnsupportedOperation. Use ExtendedGrid.setColumnWidth(column, width) instead.

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
Throws:
java.lang.UnsupportedOperationException

getRawElement

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).

Overrides:
getRawElement in class HTMLTable.CellFormatter
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