@Component(value="ui_DeclarativeColumnGenerator") @Scope(value="prototype") public class DeclarativeColumnGenerator extends java.lang.Object implements Table.ColumnGenerator
Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Method |
method |
protected java.lang.String |
methodName |
protected Table |
table |
protected boolean |
unableToFindMethod |
Constructor and Description |
---|
DeclarativeColumnGenerator(Table table,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.reflect.Method |
findGeneratorMethod(java.lang.Class cls,
java.lang.String methodName) |
Component |
generateCell(java.lang.Object entity)
Called by
Table when rendering a column for which the generator was created. |
protected FrameOwner |
getFrameOwner() |
protected final java.lang.String methodName
protected final Table table
protected java.lang.reflect.Method method
protected boolean unableToFindMethod
public DeclarativeColumnGenerator(Table table, java.lang.String methodName)
public Component generateCell(java.lang.Object entity)
Table.ColumnGenerator
Table
when rendering a column for which the generator was created.generateCell
in interface Table.ColumnGenerator
entity
- an entity instance represented by the current rowprotected FrameOwner getFrameOwner()
@Nullable protected java.lang.reflect.Method findGeneratorMethod(java.lang.Class cls, java.lang.String methodName)