public class

HTMLTable.ColumnFormatter

extends Object
java.lang.Object
   ↳ com.google.gwt.user.client.ui.HTMLTable.ColumnFormatter

Class Overview

This class contains methods used to format a table's columns. It is limited by the support cross-browser HTML support for column formatting.

Summary

Fields
protected Element columnGroup
Public Constructors
HTMLTable.ColumnFormatter()
Public Methods
void addStyleName(int col, String styleName)
Adds a style to the specified column.
Element getElement(int column)
Get the col element for the column.
String getStyleName(int column)
Gets the style of the specified column.
String getStylePrimaryName(int column)
Gets the primary style of the specified column.
void removeStyleName(int column, String styleName)
Removes a style from the specified column.
void setStyleName(int column, String styleName)
Sets the style name associated with the specified column.
void setStylePrimaryName(int column, String styleName)
Sets the primary style name associated with the specified column.
void setWidth(int column, String width)
Sets the width of the specified column.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected Element columnGroup

Public Constructors

public HTMLTable.ColumnFormatter ()

Public Methods

public void addStyleName (int col, String styleName)

Adds a style to the specified column.

Parameters
col the col to which the style will be added
styleName the style name to be added

public Element getElement (int column)

Get the col element for the column.

Parameters
column the column index
Returns
  • the col element

public String getStyleName (int column)

Gets the style of the specified column.

Parameters
column the column to be queried
Returns
  • the style name
See Also

public String getStylePrimaryName (int column)

Gets the primary style of the specified column.

Parameters
column the column to be queried
Returns
  • the style name

public void removeStyleName (int column, String styleName)

Removes a style from the specified column.

Parameters
column the column from which the style will be removed
styleName the style name to be removed

public void setStyleName (int column, String styleName)

Sets the style name associated with the specified column.

Parameters
column the column whose style name is to be set
styleName the new style name

public void setStylePrimaryName (int column, String styleName)

Sets the primary style name associated with the specified column.

Parameters
column the column whose style name is to be set
styleName the new style name

public void setWidth (int column, String width)

Sets the width of the specified column.

Parameters
column the column of the cell whose width is to be set
width the cell's new width, in percentage or pixel units