private void openExecutionWindow() { final ConnectorExecutionLayout connectorExecutionLayout = new ConnectorExecutionLayout(Module); final ConfigureWindow configureWindow = new ConfigureWindow(connectorExecutionLayout, "Execute Connector"); configureWindow.btnOk.setCaption("Run"); Button.ClickListener clickListener = new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { if (event.getButton().equals(configureWindow.btnClose)) { configureWindow.close(); } else if (event.getButton().equals(configureWindow.btnOk)) { connectorExecutionLayout.run(); } } }; configureWindow.setClickListener(clickListener); configureWindow.addCloseListener(this); HybridbpmUI.getCurrent().addWindow(configureWindow); }
private void openParameterConfigurationWindow() { final ConnectorParametersLayout connectorParametersLayout = new ConnectorParametersLayout(Module); final ConfigureWindow configureWindow = new ConfigureWindow(connectorParametersLayout, "Connector parameters"); Button.ClickListener clickListener = new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { if (event.getButton().equals(configureWindow.btnClose)) { } else if (event.getButton().equals(configureWindow.btnOk)) { connectorParametersLayout.save(); } configureWindow.close(); } }; configureWindow.setClickListener(clickListener); configureWindow.addCloseListener(this); HybridbpmUI.getCurrent().addWindow(configureWindow); }