.get(dataForThisFeed.size() - 1);
try {
Object value = entry
.get(FeedProvider.NORMALIZED_VALUE_KEY);
RenderingInfo ri = provider.getRenderingInfo(entry);
TableCellSettings settings = model
.getCellSettings(provider
.getSubscriptionId());
if (settings.getEvaluator() != null) {
ri = settings
.getEvaluator()
.getCapability(Evaluator.class)
.evaluate(
data,
Collections
.singletonList(provider));
value = ri.getValueText();
} else {
if (provider.getFeedType() != FeedType.STRING) {
if (settings.getDateFormat() != null && settings.getDateFormat() != DateFormatItem.None) {
TimeConversion tc = timeConversionMap.get(provider.getSubscriptionId());
value = TimeFormat.applySimpleDateFormat(settings.getDateFormatter(),
tc, value.toString());
} else {
value = executeDecimalFormatter(provider,
value.toString(), data, settings);
}
}
}
DisplayedValue displayedValue = new DisplayedValue();
displayedValue.setStatusText(ri.getStatusText());
displayedValue.setValueColor(ri.getValueColor());
if (ri.getStatusText().isEmpty() || ri.getStatusText().equals(" ")) {
if (settings.getFontColor() != null) {
displayedValue.setValueColor(settings.getFontColor());
}
}
// Set color according to font color settings, as long as value is valid
displayedValue.setValue(ri.isValid() ? value
.toString() : "");
displayedValue.setNumberOfDecimals(settings
.getNumberOfDecimals());
displayedValue
.setAlignment(settings.getAlignment());