use of org.uberfire.ext.widgets.table.client.CheckboxCellImpl in project kie-wb-common by kiegroup.
the class BooleanColumnGenerator method getColumn.
@Override
public Column<HasProperties, Boolean> getColumn(final String property) {
final CheckboxCellImpl checkbox = new CheckboxCellImpl(true);
final Column<HasProperties, Boolean> column = new Column<HasProperties, Boolean>(checkbox) {
@Override
public Boolean getValue(HasProperties object) {
Object value = object.get(property);
if (value == null) {
return Boolean.FALSE;
}
return Boolean.TRUE.equals(value);
}
};
return column;
}
Aggregations