CELLTYPE - the type of the cells in the rowpublic abstract static class Grid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.ui.Grid.StaticSection.StaticCell> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Grid.StaticSection<?> |
section |
| Modifier | Constructor and Description |
|---|---|
protected |
StaticRow(Grid.StaticSection<?> section) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCell(Object propertyId) |
protected abstract CELLTYPE |
createCell()
Creates and returns a new instance of the cell type.
|
CELLTYPE |
getCell(Object propertyId)
Returns the cell for the given property id on this row.
|
protected abstract String |
getCellTagName() |
protected GridStaticSectionState.RowState |
getRowState() |
String |
getStyleName()
Returns the custom style name for this row.
|
CELLTYPE |
join(CELLTYPE... cells)
Merges columns cells in a row
|
CELLTYPE |
join(Object... propertyIds)
Merges columns cells in a row
|
protected CELLTYPE |
join(Set<CELLTYPE> cells) |
protected void |
readDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
Reads the declarative design from the given table row element.
|
protected void |
removeCell(Object propertyId) |
void |
setStyleName(String styleName)
Sets a custom style name for this row.
|
protected void |
writeDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
Writes the declarative design to the given table row element.
|
protected Grid.StaticSection<?> section
protected StaticRow(Grid.StaticSection<?> section)
protected void addCell(Object propertyId)
protected void removeCell(Object propertyId)
protected abstract CELLTYPE createCell()
protected GridStaticSectionState.RowState getRowState()
public CELLTYPE getCell(Object propertyId)
propertyId - the property id of the columnpublic CELLTYPE join(Object... propertyIds)
propertyIds - The property ids of columns to mergepublic CELLTYPE join(CELLTYPE... cells)
cells - The cells to merge. Must be from the same row.public String getStyleName()
public void setStyleName(String styleName)
styleName - the style name to set or null to not use any style
nameprotected void writeDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
trElement - Element to write design todesignContext - the design contextprotected void readDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
throws DesignException
trElement - Element to read design fromdesignContext - the design contextDesignException - if the given table row contains unexpected childrenprotected abstract String getCellTagName()
Copyright © 2016 Vaadin Ltd. All rights reserved.