コード例 #1
0
 private void updateTableDetails(
     final RestServiceVirtualizeDto rstDto, final TableEntry tableEntry, final String value) {
   String key = tableEntry.getElementName();
   System.out.println(key + "value : " + value);
   if (VIRTUAL_NAME.equals(key)) {
     rstDto.setRestServiceVirtualName(value);
     changeTabTitle(value, rstDto.getRestVirtualReferenceId());
     changeProjectPanelNodeName(rstDto.getRestVirtualReferenceId(), value);
   } else if (RESPONSE_DELAY.equals(key)) {
     rstDto.getResponseStub().setFixedDelayMilliseconds(Integer.parseInt(value));
   } else if (PRIORITY.equals(key)) {
     rstDto.getRequesStub().setPriority(Integer.parseInt(value));
   }
   CommonUiActions.projectChanged();
 }
コード例 #2
0
 public void populateDataTable(final RestServiceVirtualizeDto rstDto) {
   populateServiceData(
       rstDto.getRestServiceVirtualName(),
       rstDto.getCreationTimeStamp(),
       rstDto.getLastUpdatedTimeStamp(),
       rstDto.getResponseStub(),
       rstDto.getRequesStub());
   elementValue.setCellFactory(TextFieldTableCell.forTableColumn());
   elementValue.setOnEditCommit(
       (final TableColumn.CellEditEvent<TableEntry, String> t) -> {
         updateTableDetails(
             rstDto,
             t.getTableView().getItems().get(t.getTablePosition().getRow()),
             t.getNewValue());
       });
 }