Package com.vaadin.ui
Interface Table.ColumnGenerator
-
- All Superinterfaces:
Serializable
- Enclosing class:
- Table
public static interface Table.ColumnGenerator extends Serializable
Used to create "generated columns"; columns that exist only in the Table, not in the underlying Container. Implement this interface and pass it to Table.addGeneratedColumn along with an id for the column to be generated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgenerateCell(Table source, Object itemId, Object columnId)Called by Table when a cell in a generated column needs to be generated.
-
-
-
Method Detail
-
generateCell
Object generateCell(Table source, Object itemId, Object columnId)
Called by Table when a cell in a generated column needs to be generated.- Parameters:
source- the source TableitemId- the itemId (aka rowId) for the of the cell to be generatedcolumnId- the id for the generated column (as specified in addGeneratedColumn)- Returns:
- A
Componentthat should be rendered in the cell or aStringthat should be displayed in the cell. Other return values are not supported.
-
-