/**
* Display the spcified history items in the aggregator specified.
*
* @param prefix Prefix that should be prepended to the history item URL when an item is clicked,
* changes based on whether this was a search result or the history item list.
* @param historyItems Items which to render and display in the aggregator,
* @param aggregator Aggregator that will display rendered history items.
*/
private void populateHistoryItems(
final String prefix, Iterable<HistoryItem> historyItems, EntryAggregatorView aggregator) {
for (final HistoryItem item : historyItems) {
ApiRequest request = item.getRequest();
HasClickHandlers rowHandler = aggregator.addEntry(new HistoryEntry(request.getMethod()
.getId(), request.getHttpMethod().toString() + " " + request.getRequestPath(), item
.getEndTime()));
rowHandler.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
presenter.handleClickHistoryItem(prefix, item);
}
});
}
}
FullView.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:google-apis-explorer
作者:
评论列表
文章目录