|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widgets.Grid.StaticSection.StaticCell
public static class Grid.StaticSection.StaticCell
A header or footer cell. Has a simple textual caption.
| Constructor Summary | |
|---|---|
Grid.StaticSection.StaticCell()
|
|
| Method Summary | |
|---|---|
int |
getColspan()
Returns the amount of columns the cell spans. |
java.lang.String |
getHtml()
Returns the html inside the cell. |
protected Grid.StaticSection<?> |
getSection()
|
java.lang.String |
getStyleName()
Returns the custom style name for this cell. |
java.lang.String |
getText()
Returns the text displayed in this cell. |
com.vaadin.shared.ui.grid.GridStaticCellType |
getType()
Returns the type of the cell. |
Widget |
getWidget()
Returns the widget in the cell. |
void |
setColspan(int colspan)
Sets the amount of columns the cell spans. |
void |
setHtml(java.lang.String html)
Sets the content of the cell to the provided html. |
protected void |
setSection(Grid.StaticSection<?> section)
|
void |
setStyleName(java.lang.String styleName)
Sets a custom style name for this cell. |
void |
setText(java.lang.String text)
Sets the text displayed in this cell. |
void |
setWidget(Widget widget)
Set widget as the content of the cell. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Grid.StaticSection.StaticCell()
| Method Detail |
|---|
public void setText(java.lang.String text)
text - a plain text captionpublic java.lang.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 java.lang.String getHtml()
java.lang.IllegalStateException - if trying to retrive HTML from a cell with a type
other than GridStaticCellType.HTML.public void setHtml(java.lang.String html)
GridStaticCellType.HTML.
html - The html content of the cellpublic Widget getWidget()
java.lang.IllegalStateException - if the cell is not GridStaticCellType.WIDGETpublic void setWidget(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 com.vaadin.shared.ui.grid.GridStaticCellType getType()
public java.lang.String getStyleName()
public void setStyleName(java.lang.String styleName)
styleName - the style name to set or null to not use any style
name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||