/** * Implements JMeterGUIComponent.clearGui */ @Override public void clearGui() { super.clearGui(); clearEachIteration.setSelected(false); useExpires.setSelected(true); maxCacheSize.setText(""); //$NON-NLS-1$ }
@Override public void configure(TestElement element) { super.configure(element); setUpData(); }
/** * This is the list of menu categories this gui component will be available * under. * * @return a Collection of Strings, where each element is one of the * constants defined in MenuFactory */ @Override public Collection<String> getMenuCategories() { if (standalone) { return super.getMenuCategories(); } return null; }
@Override public void modifyTestElement(TestElement args) { GuiUtils.stopTableEditing(table); if (args instanceof LDAPArguments) { LDAPArguments arguments = (LDAPArguments) args; arguments.clear(); @SuppressWarnings("unchecked") // Only contains LDAPArgument entries Iterator<LDAPArgument> modelData = (Iterator<LDAPArgument>) tableModel.iterator(); while (modelData.hasNext()) { LDAPArgument arg = modelData.next(); arg.setMetaData("="); arguments.addArgument(arg); } } super.configureTestElement(args); }
@Override public void modifyTestElement(TestElement args) { GuiUtils.stopTableEditing(table); if (args instanceof Arguments) { Arguments arguments = (Arguments) args; arguments.clear(); @SuppressWarnings("unchecked") // only contains Argument (or HTTPArgument) Iterator<Argument> modelData = (Iterator<Argument>) tableModel.iterator(); while (modelData.hasNext()) { Argument arg = modelData.next(); if(StringUtils.isEmpty(arg.getName()) && StringUtils.isEmpty(arg.getValue())) { continue; } arg.setMetaData("="); // $NON-NLS-1$ arguments.addArgument(arg); } } super.configureTestElement(args); }
@Override public void configure(TestElement te) { super.configure(te); // fill controls serversPanel.loadFromTestElement((DistributedTestControl) te); }
@Override public void clearGui() { super.clearGui(); initFields(); }
cfg.clear(); cfg.addConfigElement(el); super.configureTestElement(config); if (retrieveEmbeddedResources.isSelected()) { config.setProperty(new BooleanProperty(HTTPSamplerBase.IMAGE_PARSER, true));
@Override public void configure(TestElement te) { super.configure(te); // fill controls serversPanel.loadFromTestElement((DistributedTestControl) te); }
@Override public void clearGui() { super.clearGui(); initFields(); }
/** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ @Override public void modifyTestElement(TestElement c) { if (c instanceof CounterConfig) { CounterConfig config = (CounterConfig) c; config.setStart(startField.getText()); config.setEnd(endField.getText()); config.setIncrement(incrField.getText()); config.setVarName(varNameField.getText()); config.setFormat(formatField.getText()); config.setIsPerUser(perUserField.isSelected()); config.setResetOnThreadGroupIteration(resetCounterOnEachThreadGroupIteration.isEnabled() && resetCounterOnEachThreadGroupIteration.isSelected()); } super.configureTestElement(c); }
@Override public void configure(TestElement element) { super.configure(element); final CacheManager cacheManager = (CacheManager)element; clearEachIteration.setSelected(cacheManager.getClearEachIteration()); useExpires.setSelected(cacheManager.getUseExpires()); maxCacheSize.setText(Integer.toString(cacheManager.getMaxSize())); }
@Override public void clearGui(){ super.clearGui(); clear(); }
/** * Get all of the values from the GUI component and set them in the * TestElement. * * @param el * the TestElement to modify */ @Override public void modifyTestElement(TestElement el) { GuiUtils.stopTableEditing(table); Data model = tableModel.getData(); model.reset(); while (model.next()) { el.setProperty(new StringProperty((String) model.getColumnValue(COLUMN_NAMES_0), (String) model .getColumnValue(COLUMN_NAMES_1))); } super.configureTestElement(el); }
@Override public void configure(TestElement element) { super.configure(element); if (element instanceof VariablesFromCSV) { VariablesFromCSV varsCsv = (VariablesFromCSV)element; fileName.setText(varsCsv.getFileName()); variablePrefix.setText(varsCsv.getVariablePrefix()); separator.setText(varsCsv.getSeparator()); skipLines.setText(Integer.toString(varsCsv.getSkipLines())); storeSysProp.setSelected(varsCsv.isStoreAsSystemProperty()); } }
/** * Implements JMeterGUIComponent.clear */ @Override public void clearGui() { super.clearGui(); tableModel.clearData(); deleteButton.setEnabled(false); saveButton.setEnabled(false); clearEachIteration.setSelected(false); }
@Override public void configure(TestElement te) { log.debug("[Lockfile plugin] configure"); super.configure(te); LockFile lf = (LockFile) te; tfFileName.setText(lf.getFilename()); tfFileMask.setText(lf.getFilemask()); }
@Override public void clearGui() { super.clearGui(); initFields(); }
@Override public void configure(TestElement te) { log.debug("[Lockfile plugin] configure"); super.configure(te); LockFile lf = (LockFile) te; tfFileName.setText(lf.getFilename()); tfFileMask.setText(lf.getFilemask()); }
@Override public void clearGui() { super.clearGui(); initFields(); }