xpathElement.setAttribute("version", xpathVersionButtonGroup.getSelection().getActionCommand()); xpathElement.appendChild(document.createCDATASection(xpathQueryArea.getText()));
xpathRule.setLanguage(getLanguageVersion().getLanguage()); xpathRule.setXPath(xpathQueryArea.getText()); xpathRule.setVersion(xpathVersionButtonGroup.getSelection().getActionCommand());
final ButtonModel selectedLanguage = languagesGroup.getSelection(); if (selectedLanguage != null) { final Language language = languageLookup.get(selectedLanguage.getActionCommand());
Object[] listeners = listenerList.getListenerList(); String actionCommand = ""; ButtonModel model = getSelection(); if (model != null) { actionCommand = model.getActionCommand();
/** * @see DataProvider#getData() */ @Override public ButtonModel getData() { return buttonGroup.getSelection(); } }
public GeneralPlatformInstall getInstaller () { SelectorPanel c = getComponent (); ButtonModel bm = c.group.getSelection(); if (bm != null) { return c.installersByButtonModels.get(bm); } return null; }
public InputStream getTemplateClient(){ String path = "org/netbeans/modules/web/jsf/facelets/resources/templates/"; //NOI18N path = path + bgRootTag.getSelection().getActionCommand() + "TemplateClient.template"; //NOI18N InputStream is = this.getClass().getClassLoader().getResourceAsStream(path); return is; }
/** * The implementation will get the resource name from the selected radio button * in the JButtonGroup. */ @Override public String getText() { return this.bGroup.getSelection().getActionCommand(); }
public String getCheckOption() { if (!_checkOptionBox.isSelected()) return null; return _radioGroup.getSelection().getActionCommand(); } }
InputStream getLayoutCSS(){ String path = RESOURCES_FOLDER; path = path + bgLayout.getSelection().getActionCommand() + "Layout.css"; //NOI18N return this.getClass().getClassLoader().getResourceAsStream(path); }
public GeneralPlatformInstall getInstaller () { SelectorPanel c = getComponent (); ButtonModel bm = c.group.getSelection(); if (bm != null) { return c.installersByButtonModels.get(bm); } return null; }
private int getSelectedIndex() { final ButtonModel selectedModel = buttonGroup.getSelection(); final Component children[] = getButtonComponents(); for (int i = 0; i < children.length; i++) { AbstractButton button = (AbstractButton) children[i]; if (button.getModel() == selectedModel) { return i; } } return -1; }
private int getSelectedIndex() { final ButtonModel selectedModel = buttonGroup.getSelection(); final Component children[] = getButtonComponents(); for (int i = 0; i < children.length; i++) { AbstractButton button = (AbstractButton) children[i]; if (button.getModel() == selectedModel) { return i; } } return -1; }
private int getSelectedIndex() { final ButtonModel selectedModel = buttonGroup.getSelection(); final Component children[] = getButtonComponents(); for (int i = 0; i < children.length; i++) { AbstractButton button = (AbstractButton) children[i]; if (button.getModel() == selectedModel) { return i; } } return -1; }
public String getSelectedDeployment() { if (!hasDeployments()) return null; for (Enumeration e=deploymentsButtonGroup.getElements(); e.hasMoreElements();) { JRadioButton radio = (JRadioButton)e.nextElement(); if (radio.getModel() == deploymentsButtonGroup.getSelection()) { return radio.getText(); } } throw new IllegalStateException("No deployment selected"); } }
public void UItoModel(AbstractDynamicThreadGroup tg, JMeterVariableEvaluator evaluator) { tg.setLogFilename(evaluator.evaluate(logFile.getText())); tg.setIterationsLimit(evaluator.evaluate(iterations.getText())); if (unitGroup.getSelection() != null) { tg.setUnit(unitGroup.getSelection().getActionCommand()); } if (tg instanceof ArrivalsThreadGroup) { ArrivalsThreadGroup atg = (ArrivalsThreadGroup) tg; atg.setConcurrencyLimit(evaluator.evaluate(concurrLimit.getText())); } }
public void UItoModel(AbstractDynamicThreadGroup tg, JMeterVariableEvaluator evaluator) { tg.setLogFilename(evaluator.evaluate(logFile.getText())); tg.setIterationsLimit(evaluator.evaluate(iterations.getText())); if (unitGroup.getSelection() != null) { tg.setUnit(unitGroup.getSelection().getActionCommand()); } if (tg instanceof ArrivalsThreadGroup) { ArrivalsThreadGroup atg = (ArrivalsThreadGroup) tg; atg.setConcurrencyLimit(evaluator.evaluate(concurrLimit.getText())); } }
public void UItoModel(AbstractDynamicThreadGroup tg, JMeterVariableEvaluator evaluator) { tg.setLogFilename(evaluator.evaluate(logFile.getText())); tg.setIterationsLimit(evaluator.evaluate(iterations.getText())); if (unitGroup.getSelection() != null) { tg.setUnit(unitGroup.getSelection().getActionCommand()); } if (tg instanceof ArrivalsThreadGroup) { ArrivalsThreadGroup atg = (ArrivalsThreadGroup) tg; atg.setConcurrencyLimit(evaluator.evaluate(concurrLimit.getText())); } }
@Override public void modifyTestElement(TestElement element) { super.configureTestElement(element); if (element instanceof JSONPathExtractor) { JSONPathExtractor extractor = (JSONPathExtractor) element; extractor.setVar(variableNameTextField.getText()); extractor.setJsonPath(jsonPathTextField.getText()); extractor.setDefaultValue(defaultValTextField.getText()); extractor.setSrcVariableName(srcVariableName.getText()); extractor.setSubject(group.getSelection().getActionCommand()); } }
@Override protected boolean accept( Component c ) { if ( !isAlternativeFocusMode() && c instanceof AbstractButton ) { AbstractButton button = ( AbstractButton ) c; ButtonGroup group = ButtonPanel.getButtonGroup( button ); if ( group != null && group.getSelection() != null && !button.isSelected() ) { return false; } } return super.accept( c ); }