@Override
public DateFormatItem getDateFormat() {
if (isSelectionContainsEmptyCells()) {
return null;
}
DateFormatItem df = null;
ComponentTableModel tableModel = ComponentTableModel.class.cast(model);
for (Integer row : table.getSelectedRows()) {
for (Integer col : table.getSelectedColumns()) {
AbstractComponent component = (AbstractComponent) model.getStoredValueAt(row, col);
String id = tableModel.getKey(component);
TableCellSettings settings = tableModel.getCellSettings(id);
DateFormatItem cellDateFormat = settings.getDateFormat();
df = cellDateFormat;
}
}
return df;