}
}
}
);
processDefinitions.addRowSelectionHandler(
new RowSelectionHandler()
{
public void onRowSelection(RowSelectionEvent rowSelectionEvent)
{
loadInstances();
}
}
);
leftPanel.add(processDefinitions, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
// -----
LayoutPanel rightPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
processInstances = new ListBox<String>(new String[] {"processInstanceID"});
processInstances.setMinimumColumnWidth(0, 190);
processInstances.setCellRenderer(
new ListBox.CellRenderer<String>()
{
public void renderCell(ListBox<String> stringListBox, int row, int column, String item)
{
switch (column)
{
case 0:
processInstances.setText(row, column, item);
break;
default:
throw new IllegalArgumentException("unknown column");
}
}
}
);
processInstances.addRowSelectionHandler(
new RowSelectionHandler()
{
public void onRowSelection(RowSelectionEvent rowSelectionEvent)
{
loadActivities();
}