当前位置: 首页>>代码示例>>Java>>正文


Java VerticalPanel类代码示例

本文整理汇总了Java中org.apache.jmeter.gui.util.VerticalPanel的典型用法代码示例。如果您正苦于以下问题:Java VerticalPanel类的具体用法?Java VerticalPanel怎么用?Java VerticalPanel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VerticalPanel类属于org.apache.jmeter.gui.util包,在下文中一共展示了VerticalPanel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createLeftPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private synchronized Component createLeftPanel() {
    SampleResult rootSampleResult = new SampleResult();
    rootSampleResult.setSampleLabel("Root");
    rootSampleResult.setSuccessful(true);
    root = new SearchableTreeNode(rootSampleResult, null);

    treeModel = new DefaultTreeModel(root);
    jTree = new JTree(treeModel);
    jTree.setCellRenderer(new ResultsNodeRenderer());
    jTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    jTree.addTreeSelectionListener(this);
    jTree.setRootVisible(false);
    jTree.setShowsRootHandles(true);
    JScrollPane treePane = new JScrollPane(jTree);
    treePane.setPreferredSize(new Dimension(200, 300));

    VerticalPanel leftPane = new VerticalPanel();
    leftPane.add(treePane, BorderLayout.CENTER);
    leftPane.add(createComboRender(), BorderLayout.NORTH);
    autoScrollCB = new JCheckBox(JMeterUtils.getResString("view_results_autoscroll")); // $NON-NLS-1$
    autoScrollCB.setSelected(false);
    autoScrollCB.addItemListener(this);
    leftPane.add(autoScrollCB, BorderLayout.SOUTH);
    return leftPane;
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:26,代码来源:ViewResultsFullVisualizer.java

示例2: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() { // WARNING: called from ctor so must not be overridden (i.e. must be private or final)
    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());

    // URL CONFIG
    http2RequestPanel = new HTTP2RequestPanel(false, true, false);

    // AdvancedPanel (embedded resources, source address and optional tasks)
    JPanel advancedPanel = new VerticalPanel();
    advancedPanel.add(createEmbeddedRsrcPanel());
    advancedPanel.add(createSourceAddrPanel());
    advancedPanel.add(createOptionalTasksPanel());

    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(JMeterUtils
            .getResString("web_testing_basic"), http2RequestPanel);
    tabbedPane.add(JMeterUtils
            .getResString("web_testing_advanced"), advancedPanel);

    JPanel emptyPanel = new JPanel();
    emptyPanel.setMaximumSize(new Dimension());

    add(makeTitlePanel(), BorderLayout.NORTH);
    add(tabbedPane, BorderLayout.CENTER);        
    add(emptyPanel, BorderLayout.SOUTH);
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:27,代码来源:Http2DefaultsGui.java

示例3: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
	setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());
    
    http2RequestPanel = new HTTP2RequestPanel(true,true,true);
    
    // AdvancedPanel (embedded resources, source address and optional tasks)
    JPanel advancedPanel = new VerticalPanel();
    advancedPanel.add(createEmbeddedRsrcPanel());
    advancedPanel.add(createSourceAddrPanel());
    advancedPanel.add(createOptionalTasksPanel());

    JTabbedPane tabbedPane = new JTabbedPane();
    tabbedPane.add(JMeterUtils
            .getResString("web_testing_basic"), http2RequestPanel);
    tabbedPane.add(JMeterUtils
            .getResString("web_testing_advanced"), advancedPanel);

    JPanel emptyPanel = new JPanel();
    emptyPanel.setMaximumSize(new Dimension());

    add(makeTitlePanel(), BorderLayout.NORTH);
    add(tabbedPane, BorderLayout.CENTER);        
    add(emptyPanel, BorderLayout.SOUTH);
}
 
开发者ID:Blazemeter,项目名称:jmeter-bzm-plugins,代码行数:26,代码来源:HTTP2RequestGui.java

示例4: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
	logger.info("Initializing the UI.");
	setLayout(new BorderLayout());
	setBorder(makeBorder());

	add(makeTitlePanel(), BorderLayout.NORTH);
	JPanel mainPanel = new VerticalPanel();
	add(mainPanel, BorderLayout.CENTER);

	mainPanel.add(connUI.createConnPanel());
	mainPanel.add(connUI.createProtocolPanel());
	mainPanel.add(connUI.createAuthentication());
	mainPanel.add(connUI.createConnOptions());

	mainPanel.add(createPubOption());
	mainPanel.add(createPayload());
}
 
开发者ID:emqtt,项目名称:mqtt-jmeter,代码行数:18,代码来源:PubSamplerUI.java

示例5: createPayload

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private JPanel createPayload() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Payloads"));
	
	JPanel horizon1 = new HorizontalPanel();
	messageTypes = new JLabeledChoice("Message type:", new String[] { MESSAGE_TYPE_STRING, MESSAGE_TYPE_HEX_STRING, MESSAGE_TYPE_RANDOM_STR_WITH_FIX_LEN }, false, false);
	messageTypes.addChangeListener(this);
	messageTypes.setSelectedIndex(0);
	
	horizon1.add(messageTypes, BorderLayout.WEST);
	stringLength.setVisible(false);
	horizon1.add(stringLength);
	
	JPanel horizon2 = new VerticalPanel();
	messagePanel.setVisible(false);
	horizon2.add(messagePanel);
	
	optsPanelCon.add(horizon1);
	optsPanelCon.add(horizon2);
	return optsPanelCon;
}
 
开发者ID:emqtt,项目名称:mqtt-jmeter,代码行数:22,代码来源:PubSamplerUI.java

示例6: createConnOptions

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
public JPanel createConnOptions() {
	JPanel optsPanelCon = new VerticalPanel();
	optsPanelCon.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Connection options"));
	
	JPanel optsPanel0 = new HorizontalPanel();
	optsPanel0.add(connNamePrefix);
	optsPanel0.add(connNameSuffix);
	connNameSuffix.setSelected(true);
	optsPanelCon.add(optsPanel0);
	
	JPanel optsPanel1 = new HorizontalPanel();
	optsPanel1.add(connKeepAlive);
	optsPanel1.add(connKeeptime);
	optsPanelCon.add(optsPanel1);
	
	optsPanel1.add(connAttmptMax);
	optsPanel1.add(reconnAttmptMax);
	optsPanelCon.add(optsPanel1);
	
	return optsPanelCon;
}
 
开发者ID:emqtt,项目名称:mqtt-jmeter,代码行数:22,代码来源:CommonConnUI.java

示例7: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
	logger.info("Initializing the UI.");
	setLayout(new BorderLayout());
	setBorder(makeBorder());

	add(makeTitlePanel(), BorderLayout.NORTH);
	JPanel mainPanel = new VerticalPanel();
	add(mainPanel, BorderLayout.CENTER);

	mainPanel.add(connUI.createConnPanel());
	mainPanel.add(connUI.createProtocolPanel());
	mainPanel.add(connUI.createAuthentication());
	mainPanel.add(connUI.createConnOptions());

	mainPanel.add(createSubOption());
}
 
开发者ID:emqtt,项目名称:mqtt-jmeter,代码行数:17,代码来源:SubSamplerUI.java

示例8: createTimeStampPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private JPanel createTimeStampPanel() {
    LOGGER.debug("createTimeStampPanel() invoked");
    JPanel timeStampPanel = new VerticalPanel();
    timeStampPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Timestamp used for sampling"));
    timeStampPanel.add(useSenderTime);
    timeStampPanel.add(senderTimeInPayload);
    timeStampPanel.add(senderTimeVariableName);
    useSenderTime.addChangeListener(e -> {
        if (e.getSource() == this.useSenderTime) {
            if (this.useSenderTime.isSelected()) {
                senderTimeInPayload.setVisible(true);
                senderTimeVariableName.setVisible(true);
            } else {
                senderTimeInPayload.setVisible(false);
                senderTimeVariableName.setVisible(false);
            }
        }
    });
    return timeStampPanel;
}
 
开发者ID:eclipse,项目名称:hono,代码行数:22,代码来源:HonoReceiverSamplerUI.java

示例9: createDestinationPane

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
/**
 * 
 * @return JPanel that contains destination infos
 */
private Component createDestinationPane() {
	JPanel panel = new VerticalPanel(); //new BorderLayout(3, 0)
	this.mqttDestination.setLayout((new BoxLayout(mqttDestination, BoxLayout.X_AXIS)));
	panel.add(mqttDestination);
	JPanel TPanel = new JPanel();
	TPanel.setLayout(new BoxLayout(TPanel,BoxLayout.X_AXIS));		
	//this.connectionPerTopic.setLayout(new BoxLayout(connectionPerTopic,BoxLayout.X_AXIS));
	//this.connectionPerTopic.setAlignmentX(CENTER_ALIGNMENT);
	//TPanel.add(connectionPerTopic);
	TPanel.add(Box.createHorizontalStrut(100));
	//this.topicChoice.setLayout(new BoxLayout(topicChoice,BoxLayout.X_AXIS));
	//TPanel.add(topicChoice);
	panel.add(TPanel);
	return panel;
}
 
开发者ID:zerogvt,项目名称:mqttws-jmeter,代码行数:20,代码来源:MQTTPublisherGui.java

示例10: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {// called from ctor, so must not be overridable
	this.setLayout(new BorderLayout());

	// OAuth parameters panel
	JPanel oauthPanel = new VerticalPanel();
	oauthPanel.setLayout(new BoxLayout(oauthPanel, BoxLayout.Y_AXIS));
	oauthPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), 
			OAuthSamplerGui.getResString("oauth_param"))); //$NON-NLS-1$
	
	createConstraints();
	
	oauthPanel.add(getConsumerKeyPanel());
	oauthPanel.add(getConsumerSecretPanel());
	oauthPanel.add(getTokenPanel());

	this.add(oauthPanel);
}
 
开发者ID:groovenauts,项目名称:jmeter_oauth_plugin,代码行数:18,代码来源:OAuthConfigGui.java

示例11: createOptionalTasksPanel

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private JPanel createOptionalTasksPanel() {
	// OPTIONAL TASKS
    JPanel optionalTasksPanel = new VerticalPanel();
	optionalTasksPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), 
			JMeterUtils.getResString("optional_tasks"))); //$NON-NLS-1$

	JPanel checkBoxPanel = new HorizontalPanel();
	// RETRIEVE IMAGES
	getImages = new JCheckBox(JMeterUtils.getResString("web_testing_retrieve_images")); //$NON-NLS-1$
	// Is monitor
	isMon = new JCheckBox(JMeterUtils.getResString("monitor_is_title")); //$NON-NLS-1$
       // Use MD5
       useMD5 = new JCheckBox(JMeterUtils.getResString("response_save_as_md5")); //$NON-NLS-1$

       checkBoxPanel.add(getImages);
	checkBoxPanel.add(isMon);
       checkBoxPanel.add(useMD5);
       optionalTasksPanel.add(checkBoxPanel);

	// Embedded URL match regex
	embeddedRE = new JLabeledTextField(JMeterUtils.getResString("web_testing_embedded_url_pattern"),30); //$NON-NLS-1$
	optionalTasksPanel.add(embeddedRE);
	return optionalTasksPanel;
}
 
开发者ID:groovenauts,项目名称:jmeter_oauth_plugin,代码行数:25,代码来源:OAuthSamplerGui.java

示例12: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel mainPanel = new VerticalPanel();

    ftpDefaultPanel = new FtpConfigGui(false);
    mainPanel.add(ftpDefaultPanel);

    loginPanel = new LoginConfigGui(false);
    loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config"))); // $NON-NLS-1$
    mainPanel.add(loginPanel);

    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:18,代码来源:FtpTestSamplerGui.java

示例13: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
    setLayout(new BorderLayout(0, 5));

    if (displayName) {
        setBorder(makeBorder());
        add(makeTitlePanel(), BorderLayout.NORTH);
    }

    // MAIN PANEL
    VerticalPanel mainPanel = new VerticalPanel();
    JPanel serverPanel = new HorizontalPanel();
    serverPanel.add(createServerPanel(), BorderLayout.CENTER);
    serverPanel.add(getPortPanel(), BorderLayout.EAST);
    mainPanel.add(serverPanel);
    mainPanel.add(createRemoteFilenamePanel());
    mainPanel.add(createLocalFilenamePanel());
    mainPanel.add(createLocalFileContentsPanel());
    mainPanel.add(createOptionsPanel());

    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:22,代码来源:FtpConfigGui.java

示例14: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {
    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    VerticalPanel mainPanel = new VerticalPanel();

    tcpDefaultPanel = new TCPConfigGui(false);
    mainPanel.add(tcpDefaultPanel);

    loginPanel = new LoginConfigGui(false);
    loginPanel.setBorder(BorderFactory.createTitledBorder(JMeterUtils.getResString("login_config"))); // $NON-NLS-1$
    mainPanel.add(loginPanel);

    add(mainPanel, BorderLayout.CENTER);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:18,代码来源:TCPSamplerGui.java

示例15: init

import org.apache.jmeter.gui.util.VerticalPanel; //导入依赖的package包/类
private void init() {// called from ctor, so must not be overridable
    setLayout(new BorderLayout(0, 5));
    setBorder(makeBorder());

    add(makeTitlePanel(), BorderLayout.NORTH);

    // URL CONFIG
    urlConfigGui = new MultipartUrlConfigGui(true, !isAJP);
    add(urlConfigGui, BorderLayout.CENTER);

    // Bottom (embedded resources, source address and optional tasks)
    JPanel bottomPane = new VerticalPanel();
    bottomPane.add(createEmbeddedRsrcPanel());
    JPanel optionAndSourcePane = new HorizontalPanel();
    optionAndSourcePane.add(createSourceAddrPanel());
    optionAndSourcePane.add(createOptionalTasksPanel());
    bottomPane.add(optionAndSourcePane);
    add(bottomPane, BorderLayout.SOUTH);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:20,代码来源:HttpTestSampleGui.java


注:本文中的org.apache.jmeter.gui.util.VerticalPanel类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。