public class HTMLTable.ColumnFormatter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Element |
columnGroup |
Constructor and Description |
---|
ColumnFormatter() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected Element columnGroup
public void addStyleName(int col, java.lang.String styleName)
col
- the col to which the style will be addedstyleName
- the style name to be addedjava.lang.IndexOutOfBoundsException
UIObject.addStyleName(String)
public Element getElement(int column)
column
- the column indexpublic java.lang.String getStyleName(int column)
column
- the column to be queriedjava.lang.IndexOutOfBoundsException
UIObject.getStyleName()
public java.lang.String getStylePrimaryName(int column)
column
- the column to be queriedjava.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 removedjava.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 namejava.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 namejava.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 unitsjava.lang.IndexOutOfBoundsException
void resizeColumnGroup(int columns, boolean growOnly)
columns
- the number of columnsgrowOnly
- true to only grow, false to shrink if needed