BeanForm selectionForm = new BeanForm();
UITable table = ui.newTable(splitter, new UITable.TableUIInfo(new GridLayoutData(GridLayoutData.ALIGN_FILL, GridLayoutData.ALIGN_FILL, true, true)));
selectionForm.add(table, new UITable.TableBindingInfo(selectionForm.detailList("exchanges", Collection.class)));
ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
public String getLabel(Object object) {
Exchange exchange = (Exchange) object;
return exchange.getIn().getBody(String.class);
}
}));
ui.newTableColumn(table, new UITableColumn.TableColumnUIInfo(null, new CellLabelProvider() {
public String getLabel(Object object) {
Exchange exchange = (Exchange) object;
return exchange.getIn().getHeaders().toString();
}
}));