use of org.ovirt.engine.ui.common.widget.table.column.AbstractRenderedTextColumn in project ovirt-engine by oVirt.
the class PermissionListModelTable method addCreationDateColum.
private void addCreationDateColum() {
AbstractTextColumn<Permission> creationDateColumn = new AbstractRenderedTextColumn<Permission, Date>(new FullDateTimeRenderer()) {
@Override
public Date getRawValue(Permission object) {
// GWT doesn't have TimeUnit.java
return new Date(object.getCreationDate() * 1000);
}
};
// $NON-NLS-1$
getTable().addColumn(creationDateColumn, constants.permissionsCreationDate(), "300px");
creationDateColumn.makeSortable();
}
Aggregations