com.google.gwt.user.client.ui
Class HTMLTable.RowFormatter

java.lang.Object
  extended bycom.google.gwt.user.client.ui.HTMLTable.RowFormatter
Enclosing class:
HTMLTable

public class HTMLTable.RowFormatter
extends Object

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


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
HTMLTable.RowFormatter()
           
 
Method Summary
 void addStyleName(int row, String styleName)
          Adds a style to the specified row.
protected  Element ensureElement(int row)
          Ensure the TR element representing the specified row exists for subclasses that allow dynamic addition of elements.
 Element getElement(int row)
          Gets the TR element representing the specified row.
 String getStyleName(int row)
          Gets a style from a specified row.
 void removeStyleName(int row, String styleName)
          Removes a style from the specified row.
 void setStyleName(int row, String styleName)
          Sets the style name associated with the specified row.
 void setVerticalAlign(int row, HasVerticalAlignment.VerticalAlignmentConstant align)
          Sets the vertical alignment of the specified row.
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode, toString
 

Constructor Detail

HTMLTable.RowFormatter

public HTMLTable.RowFormatter()
Method Detail

addStyleName

public void addStyleName(int row,
                         String styleName)
Adds a style to the specified row.

Parameters:
row - the row to which the style while be added
styleName - the style name to be added
Throws:
IndexOutOfBoundsException
See Also:
UIObject.addStyleName(String)

getElement

public Element getElement(int row)
Gets the TR element representing the specified row.

Parameters:
row - the row whose TR element is to be retrieved
Returns:
the row's TR element
Throws:
IndexOutOfBoundsException

getStyleName

public String getStyleName(int row)
Gets a style from a specified row.

Parameters:
row - the row to which the style while be added
Throws:
IndexOutOfBoundsException
See Also:
UIObject#getStyleName(String)

removeStyleName

public void removeStyleName(int row,
                            String styleName)
Removes a style from the specified row.

Parameters:
row - the row to which the style while be removed
styleName - the style name to be removed
Throws:
IndexOutOfBoundsException
See Also:
UIObject.removeStyleName(String)

setStyleName

public void setStyleName(int row,
                         String styleName)
Sets the style name associated with the specified row.

Parameters:
row - the row whose style name is to be set
styleName - the new style name
Throws:
IndexOutOfBoundsException
See Also:
UIObject.setStyleName(String)

setVerticalAlign

public void setVerticalAlign(int row,
                             HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment of the specified row.

Parameters:
row - the row whose alignment is to be set
align - the row's new vertical alignment as specified in HasVerticalAlignment
Throws:
IndexOutOfBoundsException

ensureElement

protected Element ensureElement(int row)
Ensure the TR element representing the specified row exists for subclasses that allow dynamic addition of elements.

Parameters:
row - the row whose TR element is to be retrieved
Returns:
the row's TR element
Throws:
IndexOutOfBoundsException


This javadoc distribution was not produced by Google. The official documentation is here.