Search in sources :

Example 6 with ZapTextField

use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.

the class DialogAddAutoTagScanner method getConfigurationTextField.

protected ZapTextField getConfigurationTextField() {
    if (configurationTextField == null) {
        configurationTextField = new ZapTextField();
        configurationTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
    }
    return configurationTextField;
}
Also used : ZapTextField(org.zaproxy.zap.utils.ZapTextField)

Example 7 with ZapTextField

use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.

the class DialogAddAutoTagScanner method getResponseHeaderRegexTextField.

protected ZapTextField getResponseHeaderRegexTextField() {
    if (responseHeaderRegexTextField == null) {
        responseHeaderRegexTextField = new ZapTextField();
        responseHeaderRegexTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
    }
    return responseHeaderRegexTextField;
}
Also used : ZapTextField(org.zaproxy.zap.utils.ZapTextField)

Example 8 with ZapTextField

use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.

the class DialogAddAutoTagScanner method getRequestUrlRegexTextField.

protected ZapTextField getRequestUrlRegexTextField() {
    if (requestUrlRegexTextField == null) {
        requestUrlRegexTextField = new ZapTextField();
        requestUrlRegexTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
    }
    return requestUrlRegexTextField;
}
Also used : ZapTextField(org.zaproxy.zap.utils.ZapTextField)

Example 9 with ZapTextField

use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.

the class SearchPanel method getRegExField.

protected ZapTextField getRegExField() {
    if (regEx == null) {
        regEx = new ZapTextField();
        regEx.setHorizontalAlignment(ZapTextField.LEFT);
        regEx.setAlignmentX(0.0F);
        regEx.setPreferredSize(DisplayUtils.getScaledDimension(250, 25));
        regEx.setText("");
        regEx.setToolTipText(Constant.messages.getString("search.toolbar.tooltip.regex"));
        regEx.setMinimumSize(DisplayUtils.getScaledDimension(250, 25));
        regEx.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                doSearch();
            }
        });
    }
    return regEx;
}
Also used : ActionListener(java.awt.event.ActionListener) ZapTextField(org.zaproxy.zap.utils.ZapTextField) ActionEvent(java.awt.event.ActionEvent)

Example 10 with ZapTextField

use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.

the class DialogAddUser method getNameTextField.

protected ZapTextField getNameTextField() {
    if (nameTextField == null) {
        nameTextField = new ZapTextField(25);
        nameTextField.getDocument().addDocumentListener(new DocumentListener() {

            @Override
            public void removeUpdate(DocumentEvent e) {
                checkValidAndEnableConfirmButton();
            }

            @Override
            public void insertUpdate(DocumentEvent e) {
                checkValidAndEnableConfirmButton();
            }

            @Override
            public void changedUpdate(DocumentEvent e) {
                checkValidAndEnableConfirmButton();
            }
        });
    }
    return nameTextField;
}
Also used : DocumentListener(javax.swing.event.DocumentListener) ZapTextField(org.zaproxy.zap.utils.ZapTextField) DocumentEvent(javax.swing.event.DocumentEvent)

Aggregations

ZapTextField (org.zaproxy.zap.utils.ZapTextField)33 ActionEvent (java.awt.event.ActionEvent)8 ActionListener (java.awt.event.ActionListener)8 DocumentEvent (javax.swing.event.DocumentEvent)7 DocumentListener (javax.swing.event.DocumentListener)7 GridBagLayout (java.awt.GridBagLayout)6 JPanel (javax.swing.JPanel)6 JButton (javax.swing.JButton)5 Insets (java.awt.Insets)4 ImageIcon (javax.swing.ImageIcon)3 JLabel (javax.swing.JLabel)3 KeyEvent (java.awt.event.KeyEvent)2 JScrollPane (javax.swing.JScrollPane)2 SiteNode (org.parosproxy.paros.model.SiteNode)2 KeyAdapter (java.awt.event.KeyAdapter)1 KeyListener (java.awt.event.KeyListener)1 File (java.io.File)1 GroupLayout (javax.swing.GroupLayout)1 JFileChooser (javax.swing.JFileChooser)1 JPasswordField (javax.swing.JPasswordField)1