예제 #1
0
 @Override
 public void edit(Persistable p) {
   super.edit(p);
   App app = (App) p;
   //		if (app != null && app.getVisualControlsManager().getControls() != null &&
   // app.getVisualControlsManager().getControls().size() > 0){
   //			logger.info("First visualControl.getControl(): " +
   // app.getVisualControlsManager().getControls().iterator().next().getControl());
   //		}
   textFieldNameApp.setText(app == null ? "" : app.getName());
   textFieldExtensionsApp.setText(app == null ? "" : Utils.join(app.getExtensions(), ","));
   checkInstanceApp.setSelected(app == null ? false : app.getForceOneInstance());
   textFieldArgFileApp.setText(app == null ? "" : app.getArgumentsFile());
   textFieldArgDirApp.setText(app == null ? "" : app.getArgumentsDir());
   textFieldPathApp.setText(app == null ? "" : app.getPath());
   if (app != null) {
     appControlsTableModel.setData(app.getControlsManager().getControls());
     appVisualControlsTableModel.setData(app.getVisualControlsManager().getControls());
   } else {
     appControlsTableModel.clearData();
     appVisualControlsTableModel.clearData();
   }
   setSelectedWindow(app == null ? null : app.getWindowName());
   listenViewChanges = true;
 }
예제 #2
0
 private void btnDeleteControlActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnDeleteControlActionPerformed
   setModified(true);
   // Control control =
   appControlsTableModel.removeControl(tableControls.getSelectedRow());
   // Persistable p = panelListPersistable.getSelectedItem();
   // ((App)p).getControlsManager().removeControl(control);
 } // GEN-LAST:event_btnDeleteControlActionPerformed
예제 #3
0
 private void btnAddControlActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_btnAddControlActionPerformed
   appControlsTableModel.addControl();
   tableControls.changeSelection(appControlsTableModel.getRowCount() - 1, 0, false, false);
 } // GEN-LAST:event_btnAddControlActionPerformed