private void initializeFunctionList() { String[] functionNames = CompoundVariable.getFunctionNames(); Arrays.sort(functionNames, String::compareToIgnoreCase); functionList = new JLabeledChoice(JMeterUtils.getResString("choose_function"), functionNames); //$NON-NLS-1$ functionList.addChangeListener(this); }
cssJqueryActionPanel.add(cssJqueryField, c); cssJqueryLabeledChoice = new JLabeledChoice( JMeterUtils.getResString("cssjquery_impl"), // $NON-NLS-1$ getImplementations());
classNameLabeledChoice = new JLabeledChoice( JMeterUtils.getResString("protocol_java_classname"), possibleClasses.toArray(ArrayUtils.EMPTY_STRING_ARRAY), true,
/** * Shows the main cookie configuration panel. */ private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final) tableModel = new PowerTableModel(COLUMN_RESOURCE_NAMES, columnClasses); clearEachIteration = new JCheckBox(JMeterUtils.getResString("clear_cookies_per_iter"), false); //$NON-NLS-1$ policy = new JLabeledChoice( JMeterUtils.getResString("cookie_manager_policy"), //$NON-NLS-1$ new HC4CookieHandler().getPolicies()); setLayout(new BorderLayout()); setBorder(makeBorder()); JPanel northPanel = new JPanel(); northPanel.setLayout(new VerticalLayout(5, VerticalLayout.BOTH)); northPanel.add(makeTitlePanel()); JPanel optionsPane = new JPanel(); optionsPane.setBorder(BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), JMeterUtils.getResString("cookie_options"))); // $NON-NLS-1$ optionsPane.setLayout(new VerticalLayout(5, VerticalLayout.BOTH)); optionsPane.add(clearEachIteration); JPanel policyTypePane = new JPanel(); policyTypePane.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); policyTypePane.add(policy); optionsPane.add(policyTypePane); northPanel.add(optionsPane); add(northPanel, BorderLayout.NORTH); add(createCookieTablePanel(), BorderLayout.CENTER); }
fileEncoding = new JLabeledChoice(JMeterUtils.getResString("content_encoding") + nonBreakingSpace + nonBreakingSpace, // $NON-NLS-1$ PublisherSampler.getSupportedEncodings(), true, false); fileEncoding.setLayout(new BoxLayout(fileEncoding, BoxLayout.X_AXIS));
method = new JLabeledChoice(JMeterUtils.getResString("method"), // $NON-NLS-1$ HTTPSamplerBase.getValidMethodsAsArray(), true, false); method.addChangeListener(this);
tenant = new JLabeledTextField("Tenant"); container = new JLabeledTextField("Name"); endpoint = new JLabeledChoice("Endpoint", Stream.of(HonoSampler.Endpoint.values()).map(HonoSampler.Endpoint::name).toArray(String[]::new)); endpoint.setToolTipText("<html>The name of the endpoint to send the AMQP message to.</html>");
tenant = new JLabeledTextField("Tenant"); container = new JLabeledTextField("Name"); endpoint = new JLabeledChoice("Endpoint", Stream.of(HonoSampler.Endpoint.values()).map(HonoSampler.Endpoint::name).toArray(String[]::new)); endpoint.setToolTipText("<html>The name of the endpoint to send the AMQP message to.</html>");
consumerSecret = new JLabeledTextField("Consumer Secret", 25); automaticRedirect = new JCheckBox(JMeterUtils.getResString("follow_redirects")); httpMethods = new JLabeledChoice("Method", new String[]{"GET", "POST", "PUT", "DELETE", "PATCH"}); httpMethods.addChangeListener(new ChangeListener() { @Override
consumerSecret = new JLabeledTextField("Consumer Secret", 25); automaticRedirect = new JCheckBox(JMeterUtils.getResString("follow_redirects")); httpMethods = new JLabeledChoice("Method", new String[]{"GET", "POST", "PUT", "DELETE", "PATCH"}); httpMethods.addChangeListener(new ChangeListener() { @Override