add(new Label("report_date", report.getCreateDateIsoFormat()));
add(new Label("fmurl", report.getFmStatus().getUrlStr()));
add(new Label("wmurl", report.getWmStatus().getUrlStr()));
add(new Label("rmurl", report.getRmStatus().getUrlStr()));
add(new Image("fmstatus_icon", getUpOrDownArrowRef(report.getFmStatus()
.getStatus())));
add(new Image("wmstatus_icon", getUpOrDownArrowRef(report.getWmStatus()
.getStatus())));
add(new Image("rmstatus_icon", getUpOrDownArrowRef(report.getRmStatus()
.getStatus())));
ListModel crawlerStatusListModel = new ListModel(report.getCrawlerStatus());
add(new VisibilityAndSortToggler("crawler_toggler",
"crawler_status_showall", "crawler_status_hide", "crawler_status_sort",
"crawler_status_unsort", "crawler_status_more", crawlerStatusListModel));
add(new ListView<CrawlerStatus>("crawler_status_list",
crawlerStatusListModel) {
/*
* (non-Javadoc)
*
* @see
* org.apache.wicket.markup.html.list.ListView#populateItem(org.apache
* .wicket.markup.html.list.ListItem)
*/
@Override
protected void populateItem(ListItem<CrawlerStatus> statusItem) {
CrawlerStatus status = statusItem.getModelObject();
String statusString = status.getInfo().getCrawlerName() + " ("
+ status.getCrawlHost() + ":" + status.getInfo().getCrawlerPort()
+ ")";
statusItem.add(new Label("crawler_name_and_url", statusString));
statusItem.add(new Image("crawler_status_icon",
getUpOrDownArrowRef(status.getStatus())));
}
});
ListModel batchStubStatusListModel = new ListModel(
report.getBatchStubStatus());
add(new VisibilityAndSortToggler("batch_stub_toggler",
"batch_stub_showall", "batch_stub_hide", "batch_stub_sort",
"batch_stub_unsort", "batch_stub_more", batchStubStatusListModel));
add(new ListView<PCSDaemonStatus>("batch_stub_list",
batchStubStatusListModel) {
@Override
protected void populateItem(ListItem<PCSDaemonStatus> item) {
item.add(new Label("batch_stub_url", item.getModelObject().getUrlStr()));
item.add(new Image("batch_stub_status_icon", getUpOrDownArrowRef(item
.getModelObject().getStatus())));
}
});