Package com.vaadin.ui
Class Table.GeneratedRow
- java.lang.Object
-
- com.vaadin.ui.Table.GeneratedRow
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Table
public static class Table.GeneratedRow extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeneratedRow(String... text)
Creates a new generated row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
getText()
protected Object
getValue()
protected boolean
isHtmlContentAllowed()
protected boolean
isSpanColumns()
void
setHtmlContentAllowed(boolean htmlContentAllowed)
If set to true, all strings passed tosetText(String...)
will be rendered as HTML.void
setSpanColumns(boolean spanColumns)
If set to true, only one string will be rendered, spanning the entire row.void
setText(String... text)
Pass one String if spanColumns is used, one String for each visible column otherwise
-
-
-
Constructor Detail
-
GeneratedRow
public GeneratedRow(String... text)
Creates a new generated row. If only one string is passed in, columns are automatically spanned.- Parameters:
text
-
-
-
Method Detail
-
setText
public void setText(String... text)
Pass one String if spanColumns is used, one String for each visible column otherwise
-
getText
protected String[] getText()
-
getValue
protected Object getValue()
-
isHtmlContentAllowed
protected boolean isHtmlContentAllowed()
-
setHtmlContentAllowed
public void setHtmlContentAllowed(boolean htmlContentAllowed)
If set to true, all strings passed tosetText(String...)
will be rendered as HTML.- Parameters:
htmlContentAllowed
-
-
isSpanColumns
protected boolean isSpanColumns()
-
setSpanColumns
public void setSpanColumns(boolean spanColumns)
If set to true, only one string will be rendered, spanning the entire row.- Parameters:
spanColumns
-
-
-