
| Modifier and Type | Field and Description |
|---|---|
protected Element |
columnGroup |
| Constructor and Description |
|---|
ColumnFormatter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Element columnGroup
public void addStyleName(int col,
String styleName)
col - the col to which the style will be addedstyleName - the style name to be addedIndexOutOfBoundsExceptionUIObject.addStyleName(String)public Element getElement(int column)
column - the column indexpublic String getStyleName(int column)
column - the column to be queriedIndexOutOfBoundsExceptionUIObject.getStyleName()public String getStylePrimaryName(int column)
column - the column to be queriedIndexOutOfBoundsExceptionUIObject.getStylePrimaryName()public void removeStyleName(int column,
String styleName)
column - the column from which the style will be removedstyleName - the style name to be removedIndexOutOfBoundsExceptionUIObject.removeStyleName(String)public void setStyleName(int column,
String styleName)
column - the column whose style name is to be setstyleName - the new style nameIndexOutOfBoundsExceptionUIObject.setStyleName(String)public void setStylePrimaryName(int column,
String styleName)
column - the column whose style name is to be setstyleName - the new style nameIndexOutOfBoundsExceptionUIObject.setStylePrimaryName(String)public void setWidth(int column,
String width)
column - the column of the cell whose width is to be setwidth - the cell's new width, in percentage or pixel unitsIndexOutOfBoundsExceptionCopyright © 2018. All rights reserved.