|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.HTMLTable.RowFormatter
public class HTMLTable.RowFormatter
This class contains methods used to format a table's rows.
Constructor Summary | |
---|---|
HTMLTable.RowFormatter()
|
Method Summary | |
---|---|
void |
addStyleName(int row,
java.lang.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. |
protected Element |
getRow(Element tbody,
int row)
|
protected Element |
getRow(Element tbody,
int row)
Deprecated. Call and override getRow(Element, int) instead. |
java.lang.String |
getStyleName(int row)
Gets the style of the specified row. |
java.lang.String |
getStylePrimaryName(int row)
Gets the primary style of the specified row. |
boolean |
isVisible(int row)
Determines whether or not this row is visible via the display style attribute. |
void |
removeStyleName(int row,
java.lang.String styleName)
Removes a style from the specified row. |
protected void |
setAttr(int row,
java.lang.String attrName,
java.lang.String value)
Convenience methods to set an attribute on a row. |
void |
setStyleName(int row,
java.lang.String styleName)
Sets the style name associated with the specified row. |
void |
setStylePrimaryName(int row,
java.lang.String styleName)
Sets the primary style name associated with the specified row. |
void |
setVerticalAlign(int row,
HasVerticalAlignment.VerticalAlignmentConstant align)
Sets the vertical alignment of the specified row. |
void |
setVisible(int row,
boolean visible)
Sets whether this row is visible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTMLTable.RowFormatter()
Method Detail |
---|
public void addStyleName(int row, java.lang.String styleName)
row
- the row to which the style will be addedstyleName
- the style name to be added
java.lang.IndexOutOfBoundsException
UIObject.addStyleName(String)
public Element getElement(int row)
row
- the row whose TR element is to be retrieved
java.lang.IndexOutOfBoundsException
public java.lang.String getStyleName(int row)
row
- the row to be queried
java.lang.IndexOutOfBoundsException
UIObject.getStyleName()
public java.lang.String getStylePrimaryName(int row)
row
- the row to be queried
java.lang.IndexOutOfBoundsException
UIObject.getStylePrimaryName()
public boolean isVisible(int row)
row
- the row whose visibility is to be set
true
if the row is visiblepublic void removeStyleName(int row, java.lang.String styleName)
row
- the row from which the style will be removedstyleName
- the style name to be removed
java.lang.IndexOutOfBoundsException
UIObject.removeStyleName(String)
public void setStyleName(int row, java.lang.String styleName)
row
- the row whose style name is to be setstyleName
- the new style name
java.lang.IndexOutOfBoundsException
UIObject.setStyleName(String)
public void setStylePrimaryName(int row, java.lang.String styleName)
row
- the row whose style name is to be setstyleName
- the new style name
java.lang.IndexOutOfBoundsException
UIObject.setStylePrimaryName(String)
public void setVerticalAlign(int row, HasVerticalAlignment.VerticalAlignmentConstant align)
row
- the row whose alignment is to be setalign
- the row's new vertical alignment as specified in
HasVerticalAlignment
java.lang.IndexOutOfBoundsException
public void setVisible(int row, boolean visible)
row
- the row whose visibility is to be setvisible
- true
to show the row, false
to
hide itprotected Element ensureElement(int row)
row
- the row whose TR element is to be retrieved
java.lang.IndexOutOfBoundsException
protected Element getRow(Element tbody, int row)
@Deprecated protected Element getRow(Element tbody, int row)
getRow(Element, int)
instead.
protected void setAttr(int row, java.lang.String attrName, java.lang.String value)
row
- cell's rowattrName
- attribute to setvalue
- value to set
java.lang.IndexOutOfBoundsException
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |