Label header = new Label("Instance: "+ selectedProcessInstanceId);
header.setStyleName("bpm-label-header");
layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
final DecoratedTabLayoutPanel tabPanel = new DecoratedTabLayoutPanel(false);
tabPanel.setPadding(5);
processEvents = new ListBox<String>(new String[]{"Process Events"});
processEvents.setCellRenderer(new CellRenderer<String>(){
@Override
public void renderCell(ListBox<String> listBox, int row, int column, String item) {
switch(column) {
case 0:
listBox.setWidget(row, column, new HTML(item));
break;
default:
throw new RuntimeException("Should not happen!");
}
}
});
MosaicPanel sourcePanel = new MosaicPanel();
sourcePanel.add(processEvents, new BoxLayoutData(BoxLayoutData.FillStyle.VERTICAL));
tabPanel.add(sourcePanel, "Activity Events");
tabPanel.selectTab(0);
layout.add(tabPanel, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
processEventsWindow = new WidgetWindowPanel("History Instance Activity", layout, true);