We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.ui.
Interface Table.ColumnGenerator
All Superinterfaces:
Enclosing class:
- extends Serializable
public static interface Table.ColumnGenerator
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 | |
---|---|
Object |
generateCell(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)
- 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 aString
that should be displayed in the cell. Other return values are not supported.
Called by Table when a cell in a generated column needs to be generated.