});
ListGridField lastCalculationTimeField = new ListGridField("lastCalculationTime",
MSG.view_dynagroup_lastCalculationTime(), 175);
//lastCalculationTimeField.setAlign(Alignment.CENTER);
lastCalculationTimeField.setCellFormatter(new TimestampCellFormatter() {
public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
if (value == null) {
return MSG.common_val_never();
}
return super.format(value, record, rowNum, colNum);
}
});
lastCalculationTimeField.setShowHover(true);
lastCalculationTimeField.setHoverCustomizer(new HoverCustomizer() {
public String hoverHTML(Object value, ListGridRecord record, int rowNum, int colNum) {
String attribValue = record.getAttribute("lastCalculationTime");
if (attribValue != null) {
return TimestampCellFormatter.getHoverDateString(new Date(Long.valueOf(attribValue).longValue()));
} else {
return null;
}
}
});
ListGridField nextCalculationTimeField = new ListGridField("nextCalculationTime",
MSG.view_dynagroup_nextCalculationTime(), 175);
nextCalculationTimeField.setCellFormatter(new TimestampCellFormatter() {
public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
if (value == null || "0".equals(value.toString())) {
return MSG.common_val_na();
}
return super.format(value, record, rowNum, colNum);