|
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.ColumnFormatter
public class HTMLTable.ColumnFormatter
This class contains methods used to format a table's columns. It is limited by the support cross-browser HTML support for column formatting.
Field Summary | |
---|---|
protected Element |
columnGroup
|
Constructor Summary | |
---|---|
HTMLTable.ColumnFormatter()
|
Method Summary | |
---|---|
void |
addStyleName(int col,
java.lang.String styleName)
Adds a style to the specified column. |
Element |
getElement(int column)
Get the col element for the column. |
java.lang.String |
getStyleName(int column)
Gets the style of the specified column. |
java.lang.String |
getStylePrimaryName(int column)
Gets the primary style of the specified column. |
void |
removeStyleName(int column,
java.lang.String styleName)
Removes a style from the specified column. |
(package private) void |
resizeColumnGroup(int columns,
boolean growOnly)
Resize the column group element. |
void |
setStyleName(int column,
java.lang.String styleName)
Sets the style name associated with the specified column. |
void |
setStylePrimaryName(int column,
java.lang.String styleName)
Sets the primary style name associated with the specified column. |
void |
setWidth(int column,
java.lang.String width)
Sets the width of the specified column. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Element columnGroup
Constructor Detail |
---|
public HTMLTable.ColumnFormatter()
Method Detail |
---|
public void addStyleName(int col, java.lang.String styleName)
col
- the col to which the style will be addedstyleName
- the style name to be added
java.lang.IndexOutOfBoundsException
UIObject.addStyleName(String)
public Element getElement(int column)
column
- the column index
public java.lang.String getStyleName(int column)
column
- the column to be queried
java.lang.IndexOutOfBoundsException
UIObject.getStyleName()
public java.lang.String getStylePrimaryName(int column)
column
- the column to be queried
java.lang.IndexOutOfBoundsException
UIObject.getStylePrimaryName()
public void removeStyleName(int column, java.lang.String styleName)
column
- the column from which the style will be removedstyleName
- the style name to be removed
java.lang.IndexOutOfBoundsException
UIObject.removeStyleName(String)
public void setStyleName(int column, java.lang.String styleName)
column
- the column whose style name is to be setstyleName
- the new style name
java.lang.IndexOutOfBoundsException
UIObject.setStyleName(String)
public void setStylePrimaryName(int column, java.lang.String styleName)
column
- the column whose style name is to be setstyleName
- the new style name
java.lang.IndexOutOfBoundsException
UIObject.setStylePrimaryName(String)
public void setWidth(int column, java.lang.String width)
column
- the column of the cell whose width is to be setwidth
- the cell's new width, in percentage or pixel units
java.lang.IndexOutOfBoundsException
void resizeColumnGroup(int columns, boolean growOnly)
columns
- the number of columnsgrowOnly
- true to only grow, false to shrink if needed
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |