public static class Grid.StaticSection.StaticCell extends Object
| Constructor and Description |
|---|
StaticCell() |
| Modifier and Type | Method and Description |
|---|---|
int |
getColspan()
Returns the amount of columns the cell spans.
|
String |
getHtml()
Returns the html inside the cell.
|
protected Grid.StaticSection<?> |
getSection() |
String |
getStyleName()
Returns the custom style name for this cell.
|
String |
getText()
Returns the text displayed in this cell.
|
GridStaticCellType |
getType()
Returns the type of the cell.
|
com.google.gwt.user.client.ui.Widget |
getWidget()
Returns the widget in the cell.
|
void |
setColspan(int colspan)
Sets the amount of columns the cell spans.
|
void |
setHtml(String html)
Sets the content of the cell to the provided html.
|
protected void |
setSection(Grid.StaticSection<?> section) |
void |
setStyleName(String styleName)
Sets a custom style name for this cell.
|
void |
setText(String text)
Sets the text displayed in this cell.
|
void |
setWidget(com.google.gwt.user.client.ui.Widget widget)
Set widget as the content of the cell.
|
public void setText(String text)
text - a plain text captionpublic String getText()
protected Grid.StaticSection<?> getSection()
protected void setSection(Grid.StaticSection<?> section)
public int getColspan()
public void setColspan(int colspan)
colspan - the colspan to setpublic String getHtml()
IllegalStateException - if trying to retrive HTML from a cell with a type
other than GridStaticCellType.HTML.public void setHtml(String html)
GridStaticCellType.HTML.html - The html content of the cellpublic com.google.gwt.user.client.ui.Widget getWidget()
IllegalStateException - if the cell is not GridStaticCellType.WIDGETpublic void setWidget(com.google.gwt.user.client.ui.Widget widget)
GridStaticCellType.WIDGET. All previous content
is discarded.widget - The widget to add to the cell. Should not be
previously attached anywhere (widget.getParent ==
null).public GridStaticCellType getType()
public String getStyleName()
public void setStyleName(String styleName)
styleName - the style name to set or null to not use any style
nameCopyright © 2016 Vaadin Ltd. All rights reserved.