Provides a decorator interface for delegating object rendering.
Decorator Example
The following example illustrates how to render a email hyperlink in a
email table column.
Column column = new Column("email");
column.setDecorator(new Decorator() {
public String render(Object row, Context context) {
Customer customer = (Customer) row;
String email = customer.getEmail();
String fullName = customer.getFullName();
return "<a href='mailto:" + email + "'>" + fullName + "</a>";
}
});
table.addColumn(column);