)
);
toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
Label header = new Label("Known active nodes to signal: ");
header.setStyleName("bpm-label-header");
layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
listBoxTokens = new ListBox<TokenReference>(new String[] { "Node name", "Signal ref" });
listBoxTokens.setCellRenderer(new ListBox.CellRenderer<TokenReference>() {
public void renderCell(ListBox<TokenReference> listBox, int row, int column, TokenReference item) {
switch (column) {
case 0:
listBox.setText(row, column, item.getCurrentNodeName());
break;
case 1:
listBox.setText(row, column, item.getName());
break;
default:
throw new RuntimeException("Unexpected column size");
}
}
});
renderSignalListBox(-1);
layout.add(listBoxTokens, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
Label headerSignalRef = new Label("Signal ref");
headerSignalRef.setStyleName("bpm-label-header");
layout.add(headerSignalRef, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
signalRef = new TextBox();
signalRef.addFocusHandler(new FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
if (listBox.getSelectedIndex() != -1) {
listBoxTokens.setItemSelected(listBox.getSelectedIndex(), false);
}
}
});
layout.add(signalRef, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
Label headerSignals = new Label("Event data");
headerSignals.setStyleName("bpm-label-header");
layout.add(headerSignals, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
eventData = new TextBox();
layout.add(eventData, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
signalWindowPanel = new WidgetWindowPanel(
"Signal process",
layout, false
);