| | |
| | | if (newValue.equals("del")) { |
| | | DefaultTableModel model = (DefaultTableModel) subTable.getModel(); |
| | | model.removeRow(row); |
| | | DjJdgzNetworkLevel1List djJdgzNetworkLevel1List = list.get(row); |
| | | level1ListService.deleteLogic(djJdgzNetworkLevel1List.getId()); |
| | | list.remove(row); |
| | | } else { |
| | | |
| | |
| | | mxGraphComponent graphComponent = new mxGraphComponent(graph); |
| | | graphComponent.setConnectable(false); |
| | | graphComponent.setDragEnabled(false); |
| | | graphComponent.zoomTo(2, true); |
| | | graphComponent.zoomTo(1, true); |
| | | diagram.add(graphComponent); |
| | | |
| | | mxGraph finalGraph = graph; |
| | |
| | | btnSave.addActionListener(new ActionListener() { |
| | | @Override |
| | | public void actionPerformed(ActionEvent e) { |
| | | if (subTable.isEditing()) { |
| | | subTable.getCellEditor().stopCellEditing(); |
| | | } |
| | | CommonTable.saveTableList(list,subTable,columnDto); |
| | | level1ListService.save(list,data.getId(),diagram, finalGraph1); |
| | | } |