private void updateTableDetails(
     final SoapServiceVirtualizeDto srv, final TableEntry tableEntry, final String value) {
   String key = tableEntry.getElementName();
   System.out.println(key + "value : " + value);
   if (VIRTUAL_NAME.equals(key)) {
     srv.setSoapServiceVirtualizeName(value);
     changeTabTitle(value, srv.getSoapVirtualReferenceId());
     changeProjectPanelNodeName(srv.getSoapVirtualReferenceId(), value);
   } else if (RESPONSE_DELAY.equals(key)) {
     srv.getResponseStub().setFixedDelayMilliseconds(Integer.parseInt(value));
   } else if (PRIORITY.equals(key)) {
     srv.getRequesStub().setPriority(Integer.parseInt(value));
   }
   CommonUiActions.projectChanged();
 }
 public void populateDataTable(final SoapServiceVirtualizeDto srv) {
   // dataTableModel.removeActionListeners();
   populateServiceData(
       srv.getSoapServiceVirtualizeName(),
       srv.getCreationTimeStamp(),
       srv.getLastUpdatedTimeStamp(),
       srv.getResponseStub(),
       srv.getRequesStub());
   elementValue.setCellFactory(TextFieldTableCell.forTableColumn());
   elementValue.setOnEditCommit(
       (final TableColumn.CellEditEvent<TableEntry, String> t) -> {
         updateTableDetails(
             srv, t.getTableView().getItems().get(t.getTablePosition().getRow()), t.getNewValue());
       });
 }
 @Override
 public void handle(final ActionEvent t) {
   soap.getRequesStub().setUrl(serviceEndPointUrl.getText());
   soap.setSoapServiceWsdlUrl(wsdrlUrlTextField.getText());
   soap.setSoapEndPointUrl(serviceEndPointUrl.getText());
   soap.setRequestXml(requestTextArea.getText());
   soap.setResponseXml(responseTextArea.getText());
   soap.setLastUpdatedTimeStamp(Calendar.getInstance());
   soap.setSoapOperationName(operationList.getSelectionModel().getSelectedItem());
   soap.getResponseStub().setResponse(responseTextArea.getText());
   soap.getRequesStub().setRequestMethod("POST");
 }
 public SoapServiceVirtualUiMainPanel(
     final SoapServiceVirtualizeDto soap, final VirtualizationUiOptions wireMockOptions) {
   this.soap = soap;
   this.wireMockOptions = wireMockOptions;
   GridPane pane = new GridPane();
   pane.setAlignment(Pos.TOP_LEFT);
   pane.setHgap(10);
   pane.setVgap(10);
   setPadding(new Insets(5, 10, 5, 10));
   Label wsdlUrl = new Label("Wsdl URL:");
   Text requestXml = new Text("Request\nXml");
   requestXml.setTextAlignment(TextAlignment.JUSTIFY);
   Text responseXml = new Text("Response\nXml");
   responseXml.setTextAlignment(TextAlignment.JUSTIFY);
   loadWsdlButton = new MsstButton("LoadWsdl");
   wsdrlUrlTextField = new MsstTextField();
   wsdrlUrlTextField.setText(soap.getWsdlURL());
   GridPane.setHalignment(wsdrlUrlTextField, HPos.LEFT);
   Text endPointUrl = new Text("End point\nURL");
   operationList = new ComboBox<String>();
   serviceEndPointUrl = new MsstTextField();
   pane.add(wsdlUrl, 0, 1, 1, 1);
   pane.add(wsdrlUrlTextField, 1, 1, 5, 1);
   pane.add(loadWsdlButton, 6, 1, 2, 1);
   pane.add(endPointUrl, 0, 2);
   pane.add(serviceEndPointUrl, 1, 2, 5, 1);
   pane.add(operationList, 6, 2, 1, 1);
   saveButton = new MsstButton("Save Stub");
   requestTextArea = new MsstTextArea(soap.getRequestXml());
   responseTextArea = new MsstTextArea(soap.getResponseXml());
   requestTextArea.setMinWidth(300);
   responseTextArea.setMinWidth(300);
   GridPane.setHalignment(saveButton, HPos.CENTER);
   pane.add(requestXml, 0, 3, 1, 1);
   pane.add(requestTextArea, 1, 3, 2, 1);
   pane.add(responseXml, 3, 3, 1, 1);
   pane.add(responseTextArea, 4, 3, 3, 1);
   pane.add(saveButton, 0, 4, 5, 1);
   saveButton.setOnAction(saveButtonActionEvent);
   operationList.setOnAction(listActionListener);
   loadWsdlButton.setOnAction(loadWsdlActionListener);
   setFitToHeight(true);
   setFitToWidth(true);
   setContent(pane);
 }