graph.setVisible(true);
Image loading = (Image) panel.getWidget(1);
loading.setVisible(false);
HasText translated = (HasText) this.getWidget(row, COMPLETE_COLUMN);
HasText untranslated =
(HasText) this.getWidget(row, INCOMPLETE_COLUMN);
graph.setStatOption(statsByWords);
String locale =
userWorkspaceContext.getWorkspaceContext().getWorkspaceId()
.getLocaleId().toString();
TranslationStatistics wordStats =
stats.getStats(locale, StatUnit.WORD);
if (statsByWords) {
translated.setText(String.valueOf(wordStats
.getTranslatedAndApproved()));
untranslated.setText(String.valueOf(wordStats.getIncomplete()));
} else {
TranslationStatistics msgStats =
stats.getStats(locale, StatUnit.MESSAGE);
translated.setText(String.valueOf(msgStats
.getTranslatedAndApproved()));
untranslated.setText(String.valueOf(msgStats.getIncomplete()));
}
HasText remainingHour =
(HasText) this.getWidget(row, REMAINING_COLUMN);
remainingHour.setText(messages.statusBarLabelHours(TextFormatUtil
.formatHours(wordStats.getRemainingHours())));
}
}