listener.sortList(header, asc);
}
}
private void buildHeader() {
InlineLabel pathHeader = new InlineLabel(messages.columnHeaderPath());
pathHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.PATH_HEADER));
InlineLabel docHeader =
new InlineLabel(messages.columnHeaderDocument());
docHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.DOC_HEADER));
InlineLabel statsHeader =
new InlineLabel(messages.columnHeaderStatistic());
statsHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.STATS_HEADER));
InlineLabel completeHeader =
new InlineLabel(messages.columnHeaderComplete());
completeHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.COMPLETE_HEADER));
InlineLabel incompletedHeader =
new InlineLabel(messages.columnHeaderIncomplete());
incompletedHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.INCOMPLETE_HEADER));
InlineLabel remainingHeader =
new InlineLabel(messages.columnHeaderRemaining());
remainingHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.REMAINING_HEADER));
InlineLabel lastUploadHeader =
new InlineLabel(messages.columnHeaderLastUpload());
lastUploadHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.LAST_UPLOAD_HEADER));
InlineLabel lastTranslatedHeader =
new InlineLabel(messages.columnHeaderLastTranslated());
lastTranslatedHeader.addClickHandler(new HeaderClickHandler(
DocumentListDisplay.LAST_TRANSLATED_HEADER));
InlineLabel actionHeader =
new InlineLabel(messages.columnHeaderAction());
this.setWidget(0, PATH_COLUMN, pathHeader);
this.setWidget(0, DOC_COLUMN, docHeader);
this.setWidget(0, STATS_COLUMN, statsHeader);
this.setWidget(0, COMPLETE_COLUMN, completeHeader);