@UiHandler("uploadBundleUploadButton")
 void clickUploadBundleUploadButton(ClickEvent event) {
   uploadBundleUploadButton.setEnabled(false);
   if (checkBundleFormValid()) {
     uploadResultTextBox.setVisible(false);
     showUploadProgressForBundle(true);
     presenter.uploadBundle(
         uploadBundleNameTextBox.getText(), uploadBundleClassNameTextBox.getText());
   }
 }
示例#2
0
 public ComputeKappa(CyNetwork network, JFrame frame) {
   wgs = new WeightGraphStructure(network);
   menuUtils = new ModelMenuUtils(wgs, frame);
   menuUtils.srcDialog = new ArrayList<Integer>();
   menuUtils.tgtDialog = new ArrayList<Integer>();
   if (!wgs.initWeights()) {
     JOptionPane.showMessageDialog(frame, menuUtils.errorWeigth, title, JOptionPane.ERROR_MESSAGE);
     return;
   }
   wgs.reach = menuUtils.getReach();
   if (wgs.reach == 0.0) return;
   threshold = menuUtils.getThreshold();
   if (threshold == Double.MAX_VALUE) return;
   txt = new TextBox(frame, title + " " + wgs.getName(), 0.5, 1.0);
   txt.setVisible(true);
   txt.append(params());
 }