com.vaadin.ui
Interface Table.ColumnGenerator
- All Superinterfaces:
- java.io.Serializable
- Enclosing class:
- Table
public static interface Table.ColumnGenerator
- extends java.io.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 |
java.lang.Object |
generateCell(Table source,
java.lang.Object itemId,
java.lang.Object columnId)
Called by Table when a cell in a generated column needs to be
generated. |
generateCell
java.lang.Object generateCell(Table source,
java.lang.Object itemId,
java.lang.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
Component
that should be rendered in the cell or a
String
that should be displayed in the cell. Other
return values are not supported.
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.