private void init() { log.debug("[Lockfile plugin] init"); setLayout(new BorderLayout(0, 5)); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); JPanel mainPanel = new JPanel(new GridBagLayout()); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.anchor = GridBagConstraints.FIRST_LINE_END; GridBagConstraints editConstraints = new GridBagConstraints(); editConstraints.anchor = GridBagConstraints.FIRST_LINE_START; editConstraints.weightx = 1.0; editConstraints.fill = GridBagConstraints.HORIZONTAL; editConstraints.insets = new java.awt.Insets(2, 0, 0, 0); labelConstraints.insets = new java.awt.Insets(2, 0, 0, 0); addToPanel(mainPanel, labelConstraints, 0, 0, new JLabel("Lock file name: ", JLabel.RIGHT)); addToPanel(mainPanel, editConstraints, 1, 0, tfFileName = new JTextField(20)); addToPanel(mainPanel, labelConstraints, 0, 1, new JLabel("Also check filemask: ", JLabel.RIGHT)); addToPanel(mainPanel, editConstraints, 1, 1, tfFileMask = new JTextField(20)); JPanel container = new JPanel(new BorderLayout()); container.add(mainPanel, BorderLayout.NORTH); add(container, BorderLayout.CENTER); }
public LockFileGui() { super(); init(); initFields(); }
@Override public void clearGui() { super.clearGui(); initFields(); }
@Override public void modifyTestElement(TestElement te) { log.debug("[Lockfile plugin] modifyTestElement"); configureTestElement(te); LockFile lf = (LockFile) te; lf.setFilename(tfFileName.getText()); lf.setFilemask(tfFileMask.getText()); }
@Override public TestElement createTestElement() { log.debug("[Lockfile plugin] createTestElement"); LockFile lockFile = new LockFile(); modifyTestElement(lockFile); lockFile.setComment(JMeterPluginsUtils.getWikiLinkText(WIKIPAGE)); return lockFile; }
@Override public void clearGui() { super.clearGui(); initFields(); }
@Override public void modifyTestElement(TestElement te) { log.debug("[Lockfile plugin] modifyTestElement"); configureTestElement(te); LockFile lf = (LockFile) te; lf.setFilename(tfFileName.getText()); lf.setFilemask(tfFileMask.getText()); }
@Override public TestElement createTestElement() { log.debug("[Lockfile plugin] createTestElement"); LockFile lockFile = new LockFile(); modifyTestElement(lockFile); lockFile.setComment(JMeterPluginsUtils.getWikiLinkText(WIKIPAGE)); return lockFile; }
private void init() { log.debug("[Lockfile plugin] init"); setLayout(new BorderLayout(0, 5)); setBorder(makeBorder()); add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH); JPanel mainPanel = new JPanel(new GridBagLayout()); GridBagConstraints labelConstraints = new GridBagConstraints(); labelConstraints.anchor = GridBagConstraints.FIRST_LINE_END; GridBagConstraints editConstraints = new GridBagConstraints(); editConstraints.anchor = GridBagConstraints.FIRST_LINE_START; editConstraints.weightx = 1.0; editConstraints.fill = GridBagConstraints.HORIZONTAL; editConstraints.insets = new java.awt.Insets(2, 0, 0, 0); labelConstraints.insets = new java.awt.Insets(2, 0, 0, 0); addToPanel(mainPanel, labelConstraints, 0, 0, new JLabel("Lock file name: ", JLabel.RIGHT)); addToPanel(mainPanel, editConstraints, 1, 0, tfFileName = new JTextField(20)); addToPanel(mainPanel, labelConstraints, 0, 1, new JLabel("Also check filemask: ", JLabel.RIGHT)); addToPanel(mainPanel, editConstraints, 1, 1, tfFileMask = new JTextField(20)); JPanel container = new JPanel(new BorderLayout()); container.add(mainPanel, BorderLayout.NORTH); add(container, BorderLayout.CENTER); }
public LockFileGui() { super(); init(); initFields(); }