@Override
 public void saveParam(Object obj) throws Exception {
   OptionsParam optionsParam = (OptionsParam) obj;
   HttpSessionsParam sessionParam = optionsParam.getParamSet(HttpSessionsParam.class);
   sessionParam.setDefaultTokens(getDefaultTokensModel().getTokens());
   sessionParam.setEnabledProxyOnly(getChkProxyOnly().isSelected());
   sessionParam.setConfirmRemoveDefaultToken(!tokensOptionsPanel.isRemoveWithoutConfirmation());
 }
 @Override
 public void initParam(Object obj) {
   // Initialize the default token names
   OptionsParam optionsParam = (OptionsParam) obj;
   HttpSessionsParam param = optionsParam.getParamSet(HttpSessionsParam.class);
   getDefaultTokensModel().setTokens(param.getDefaultTokens());
   getChkProxyOnly().setSelected(param.isEnabledProxyOnly());
   tokensOptionsPanel.setRemoveWithoutConfirmation(!param.isConfirmRemoveDefaultToken());
 }
Example #3
0
 @Override
 public void initParam(Object obj) {
   OptionsParam optionsParam = (OptionsParam) obj;
   PassiveScanParam passiveScanParam =
       (PassiveScanParam) optionsParam.getParamSet(PassiveScanParam.class);
   getTableModel().setScanDefns(passiveScanParam.getAutoTagScanners());
   scannersOptionsPanel.setRemoveWithoutConfirmation(
       !passiveScanParam.isConfirmRemoveAutoTagScanner());
 }
Example #4
0
  @Override
  public void saveParam(Object obj) throws Exception {
    OptionsParam optionsParam = (OptionsParam) obj;
    PassiveScanParam passiveScanParam =
        (PassiveScanParam) optionsParam.getParamSet(PassiveScanParam.class);
    passiveScanParam.setAutoTagScanners(getTableModel().getElements());
    passiveScanParam.setConfirmRemoveAutoTagScanner(
        !scannersOptionsPanel.isRemoveWithoutConfirmation());

    passiveScanners.setAutoTagScanners(passiveScanParam.getAutoTagScanners());
  }